@manooooh it's probably pdf-reader dependent but in principle I think you could specify an actualtext string of a space for the linebreak (@UlrikeFischer knows more about that though)
@manooooh On my Mac I do not have this problem when copying stuff from a pdf file but as @DavidCarlisle is saying this may only depend on the viewer, not on the OS.
@manooooh pdf allows (in principle) for you to have hidden data (like alt text in an html image) so that you see something in screen but it cuts and pastes as something else (but it is a typically arcane and tricky thing to set up, search the site for some examples)
@manooooh And I hate windows. Even though I was using the precisely same viewer on windows as in my tests on my Mac, acroread, during the presentation my nice beamer animation wouldn't work. And it is sort of random, some work, some don't.
@marmot yes, you had that problem. Windows is not good for some things... But here, my problem is that I want to share my document, so my thoughts are, as my code doesn't work in my machine, then it doesn't work in any machine, and I'm wrong, as you note
@DavidCarlisle thanks for the search!! However: 1) I have never used minted, 2) I don't understand what does lexer mean, 3) I don't know how to implement that link in LaTeX. But thanks!
@manooooh just use \inpputminted instead of the listings versions, that page tells you the language options you can use vbnet` in this case, you don't need anything else (you need --shell-escape and the python pygments module installed though)
@barbarabeeton I already tried my luck but this has only lead to an update but not a solution. (I wiped out the mess brew did on my Mac and just downloaded MacTeX and run the installer, that works fine.)
@marmot -- I kind of figured that MacTeX would be a good recommendation, but since all my relevant texing has been done on a unix box, I'm not inclined to jump in.
@barbarabeeton Well, there seems to be an updvoted accepted answer that uses brew so for some it seems to work and I do not want to make strong statements.
@barbarabeeton No, that's perfectly fine. How would you know I am not using brew? As a matter of fact I did use it (without being aware) until @DavidCarlisle and @egreg helped me at tex.stackexchange.com/q/408421/121799 .
@barbarabeeton OK, it was MacPorts, never mind. ;-)
@UlrikeFischer (@JosephWright) if the testfiles/support directory contains the settings above and build.lua references them as shown, should that be enough or do I also need to set TEXMFCNF environment variable? the l3build doc seems to imply I should set the environment, but I'd rather do it in Lua?
a local texmf should just work I think without setting the environment, we are doing TEXMFCNF=. (doc misleading:-) hmm so why isn't it working....
@DavidCarlisle there is a texmf.cnf in testfiles-luatex/support and it works (as I got failures from it ...). But I'm not sure if you can set max_print_line there, doesn't l3build overwrite this again?
@DavidCarlisle I tried just to activate harftex in the luaotfload tests and got lots of failures because of different line length, so I'm quite interested to know if you find something.
@UlrikeFischer adding maxprintline=200 to build.lua makes line break changes in several tlg, but hopefully it would be the same for everyone, I could update the files here then see if they pass for you?
@FaheemMitha 99% of people are fine without it (especially if they use pdftex or xetex) but if you use luatex best to be as new as possible as it had far more changes, and if on this site you are quite likely to get answers using the latest versions. if texlive 2017 is fine for you then there is no problem but if you ask about a problem that was fixed in 2018 then "get a newer tex distribution" is a reasonable answer
@UlrikeFischer OK I just need to check that the diffs are all of that form....
@egreg I'm confused for lot reasons. I am not confused about what I will have to do, but because in the document of 15 May, a committee put up stakes that conflict with the rules of the MIUR.
@egreg I have a lot of ideas but the materials must be texts, passages in poetry or prose, in Italian or foreign language; documents (ideas from newspapers, magazines, photos of artistic heritage and monuments, works of art, .... graphics, tables with significant data; experiences and projects and simple problems in practical and professional cases.
@egreg For physics there were no difficulties in processing them, but for mathematics if you have any ideas send me an email. Thank you very much. A very warm and affectionate greeting.
@manooooh I mean beamer makes documents designed to be beamed, ie presented on a big wall with you stood in front, it isn't designed to make something you print on paper (mostly)
@DavidCarlisle well, mostly the excersises that I want to make would be stored in a PC
Since the students have their own computer
Also, I'm working with a teacher, and he presents excersises on a TV to all students, and then he shares their document (which is a Word) to the students. They don't print the document but they see it on the monitor
Yeah, I'm sure the students won't print the documents, they will use it on the computer
@DavidCarlisle A constant battle in our classrooms. The blackboards are there, but the cleaning staff routinely don't restock the chalk. Whiteboards on the other hand are the spawn of Satan.
@manooooh Whiteboards 1) are dirtier 2) are harder to clean 3) generate tons of plastic waste. 4) Markers are unreliable compared to chalk 5) Markers are more likely to be stolen than chalk. 6) Markers are more expensive than chalk. Whiteboards have no redeeming qualities.
@AlanMunn chalkboards 1) are very difficult to write, since it has porous and too many imperfections, 2) it is possible that as you write you hear an annoying noise, 3) the chalks are easily broken, and you have a lot of chalks split around the chalkboard, 4) they produce annoying dust, 5) it is annoying to use any geometry instrument (ruler, compass ...)
@manooooh White boards produce a much more annoying kind of dust. And to me the environmental costs (and overall costs of markers) overwhelm any of the supposed downsides of chalkboard.
@FaheemMitha It's black, and stains everything it touches. I assume it's bits of the marker tip that comes off as you write. It's not dust in the same way that chalk dust is.
@FaheemMitha I started teaching to grad students (from 12 to 18). I'm an auxiliar teacher of Informatic programs, and we rarely use whiteboard, we use a computer
@FaheemMitha Yes, 2 courses/semester. And mainly with chalk. I use handouts for grad classes as well. But we have a whiteboard in our lab. I use Beamer for presentations, but not for teaching (mainly because if the material I teach.)
@HaraldHanche-Olsen yes! In some places there are a locker in the room where the teachers drop their chalks, markers, erasers etc. Others just bring from their houses!
@manooooh we then hat rotational blackboard duty, two students who were responsible for a week that the blackboards are clean at the beginning of each lesson and that there was enough chalk in the room.
@Skillmon Ooh. When I first started teaching in my present job, there were janitors cleaning the boards between lectures. But no more. Now, I have to start most lectures cleaning the board after the lecturer before me. It makes me doubly mad because I always cleans the board after my lecture, because I think that is how it should be done.
@Skillmon that is important, even more important that in school. However, it is not less harmful to teach that to the students, since many parents do not teach it and they are not even present... :(
@HaraldHanche-Olsen yes, that's indeed how it should be done. But seriously, janitors cleaning the backboard between each subject/lesson seems a bit over the top, imho.
@HaraldHanche-Olsen that is true. Some teachers forget to clean the board and some others don't have that practice learned... That is sadly bad. In my school, the boards are cleaned by Maintenance once a day, or once a week
@mickep some ask, they must be 5% (unfortunately!)
@mickep you can do it, it seems good to me. What I do not like is that the students do not pay attention. How many could pay attention to you? It does not happen very often here
@manooooh I agree that it is not so nice with students not paying attention, but if I have 150-200 students, I count there will always be some of them who cannot keep up for one or other reason. I don't know how big classes you have?
@mickep that's also true. We have 20-30-40 alumns per course. The point here is that <50% pay attention. When the students came to the informatic room, they sit down, they eat, they talk to each other. We, the teachers, don't have enough time to show them fancy things, like what is written in the whiteboard when we entered. We have 1 hour = 40 minutes of class, 2 hours = 1:20 hours of class, and the students has at most 2 hours with us (4 per week)
@manooooh Oh, sounds a bit bad. What do you do about those who talk to each other? I tell them it is disrespectful against their friends, and that usually helps.
@mickep we usually request silence. We lose 10-15 minutes because of asking for silence, or waiting for students to come in to the room, or searching for the files we need to share with their (we usually use Word or PowerPoint. I know, it's not good to talk about these programs in TeX - LaTeX :P)
Other 10 minutes for questions of students regarding "Where do I leave my work?" or "Where do I leave my pendrive?"
\documentclass[spanish]{beamer}
\usepackage{babel}
\newtranslation[to=Spanish]{Examples}{Exemplos}
\begin{document}
\begin{frame}{A frame}
\begin{examples}
An example
\end{examples}
\end{frame}
\end{document}
@manooooh ^^^
(Pardon my portenhol.)
@manooooh Actually you don't even need to load babel or specify the language. So you could just add \newtranslation{Examples}{Exemplos} and it would work too.
According to section 18.2.1 of the beamer manual, a default font size of 8pt is already "way too small". beamer uses the extsizes packages for non-standard font sizes, and extsizes doesn't offer anything smaller than 8pt. If you really must fit more text on each frame, I suggest to enlarge beamer...
I followed the answer and set \geometry{paperwidth=140mm,paperheight=105mm}. Do you recommend this size?
I want a higher size since the slides are too small for my presentation. What size do you recommend or what scale do we need to use?
@egreg nice catch!! I thought (La)TeX will notice the % and ignore it, since it could be used as for comment (and therefore do not take it into account). Now I realize that (La)TeX is smarter than I thought...
@manooooh How can it be taken into account if it's discarded when reading the input file, before TeX performs anything related to typesetting or macro definition?
@egreg because, if we say "% does nothing", then if we add or not the % symbol, TeX will compile anyway. But that is not true, since adding % prevents the unprotected EOL i.e. we are saying "% does something"
@manooooh yes but \foobar#1}% and \foobar#1}% this is a line of code are handled the same way, in both cases, tex ignores everything from % to the end of line
@DavidCarlisle ...when you could spend hours and hours looking for the solution to the problem when the real solution was to add a %. Is not it important to know?
@manooooh % comment <end of line> ignores the comment and end of line %<end of line> ignores the comment and the end of line, just that the comment is empty, it is the same behaviour
@manooooh no of course not, one is a comment and one not. But you were implying that there is a second use of % aside from its use in comments and that isn't the case
@manooooh End of line percent signs in your document source are only very rarely needed. The issue mainly arises in macro definitions not in regular documents.
@AlanMunn ok. I still believe that you can have your own definition of "regular document", and to me it can be a different definition, but I understand your point
@manooooh By 'regular document' I mean not a package or class. But the main distinction is between "in a macro definition vs not". There are very few places outside of macro definitions where an end of line % is needed. (Very few, not none, though.)
@manooooh you never need to use % you just can use it if you have added white space that you want to comment out, so if in your document you have one two and you change the space to a newline, do not comment out the newline as it would be onetwo but if you add a newline where a space would be wrong, then you can comment it out if you do not want to write the code on one line without a newline.
@AlanMunn Well, I always thought it is precisely the opposite. Inside a tikzpicture text and in particular spaces get gobbled. So there are only few places where it matters. However, if you play e.g. with foreach or any coding outside you are much more "vulnerable".
> Microsoft today teased some its first plans for Project Scarlett, the next-generation Xbox, and the buzzwords make it sound impressive: up to 120 frames-per-second, a solid state drive, ray-tracing, and so on. It’ll be out in the fall of 2020.
@manooooh well no in the form you used it above you are asking if there is any such document the reading you intended did not occur to me until after you objected to my answer
@manooooh \par{} inserts a paragraph with no space in the source file.
@touhami Thanks for posting your answer to the Arabic question. I fear that Sandra is quite committed to the arabtex solution, unfortunately. From my talking with here in chat it seems that she has a thesis due next week mostly written with that, so I don't know whether switching to use XeLaTeX would be practical.
@DavidCarlisle Your discourse on not being able to add unbalanced braces to token lists was very helpful. One thing I found I could do was add catcode 12 braces to the token list as I went, and then \scantokens the result. But I have no guarantee that the token list is expandable...
@DavidCarlisle So the question is, is there a simple way to take a token list with balanced catcode 12 braces, and reconvert the token list into catcode 1 and 2 braces, without any further expansion of the token list?