Consider a travelling wave produced by vibrating one end of a rope while the other end is made to freely move along a vertical line. Mathematically, the equation of the traveling wave that also represents the equation of motion of each point on the rope is given as follows.
$$y(x,t)=A\sin(kx-\om...
This poll is used to know the distribution of TeX users based on theirs nationalities. Please carefully choose only one option per person, don't make a mistake, and someones with administrative privilege might be watching you!
There is also a Data Explorer query that uses the information enter...
are you supposed to upvote the relevant comment? That's what I did. Though I don't understand how this is supposed to work. It says India 317, but there only 8 upvotes for India.
Do the upvotes get remove and added to a running total, or something like that?
@TorbjørnT. I see. So this would be a separate count?
@JosephWright Thank you for your comment. Yes, I don't call \maketitle. I want something that will be called as close to the beginning of the document as possible, that's all.
What does \AtBeginDocument{\insertname} or \AtBeginDocument{\maketitle} so and where is it defined?
@FaheemMitha Yes, the 317 comes from what users have written in their profile I think, while the votes are just those who happen to see that poll, and have voted.
Hello, guys! I'm thinking about whether to follow old advice of David to stop looking for solution which would auto-size delimiters like parenthesis and to switch to manual placement of \bigl, \bigr, and alike ones. But for this to work i need environment where i somehow could instantly see the changes that makes for example the edit from \bigl to \biggl, maybe even without need to move my eyes (or sight, don't know how to say it in English properly).
By the last i meant that after edit delimiter after \bigl (becoming \biggl) becomes bigger in code.
So, what environments are you using? Do they provide something alike?
@AndrewZabavnikov I use emacs for everything: it does try to show some constructs such as headings and superscripts at different sizes (so could do the same for \big..) , although mainly I find that an annoying distraction and would turn it off if I was doing any serious latex document editing.
@DavidCarlisle And after your long experience with (La)TeX i can assume that you see in your mind the resulting document before compilation? Or not? :-)
@AndrewZabavnikov a friend once complained to me that a latex file I'd sent had errors and we had several email exchanges where I said I got no errors when I ran it. It finally turned out that by "error" she didn't mean a reported tex error she meant that the output was wrong (in fact the document truncated and there was just a single page number 1 printed and no other text). I hadn't checked that part:-)
@AndrewZabavnikov yes more seriously it's a pain. If you are publishing database output automatically you either need to look harder for an automatic solution or just accept a slightly suboptimal size sometimes. If hand writing a real document though I don't think it's such a big issue, I'd just use some arbitrary size say \bigl on the first draft and then adjust if needed as part of the editing, may also have to adjust the position of the linebreaks and other things, so it's just part of the work.
For details, see beameruserguide.pdf, p. 86, paragraph \renewcommand<>
\documentclass{beamer}
\usepackage{ulem}
\renewcommand<>\sout[1]{\alt#2{\beameroriginal{\sout}{#1}}{#1}}
\begin{document}
\begin{frame}
\sout<1>{Striked on 1st slide}
\sout{Striked always}
\sout<2>{Striked on 2nd slide}
...
@AndrewZabavnikov well it's fairly easy to come up with a syntax that autosizes, but has syntax restrictions rather than expecting it to be able to cope with whatever weird tex primitives are there, so for your own document you can do that. for example \myleftright{a+b\\ frac{x}{y} } where \myleftright locally defines something like (untested:-) \def\myleftright{\setbox0\hbox{\let\\\relax$#1$}\def\\{\right.\originalcr\left.}\left(\vphantom{\usebox0}#1vphantom{\usebox0}\right)}
@JosephWright yep. IMHO there should be \renewcommandwithalt<> that would do exactly what I do in the answer. The problem is knowing the number of parameters etc., but if xpatch can do it, why not beamer, right? :p
@AndrewZabavnikov note it gets harder depending how much you want to support. That sketch typesets the equation twice, once to measure and then normally , but setting things twice always has standard problems as for a full solution you need to make sure any \label etc don't get executed twice or counters incremented twice. there are fixes for that (ams alignments already set their body twice for example and have an \@ifmeasuring switch) but the details can be tiresome.
@tohecz firstly you can't use a local group if you want it to wrap just a couple of lines of an alignment (the ones that get the () ) but even if you do the whole alignment and could use a group, it isn't global definitions that are the problem so much as file writing to aux file and global counter increments and...)
@tohecz the way to learn this stuff is to put out a package like tabularx that sets things an arbitrary number of times and then just collect 20 years worth of bug reports about things that need to be added to the code that makes things safe in that context
@AndrewZabavnikov you can make that work (although the command only really makes sense with `\` in its argument of course)
@AndrewZabavnikov yes but the point is that if you save it in a box you can use its height to put the same size brackets at the start and end
@AndrewZabavnikov oh sorry you mean grouping, you can make that work by taking care to stack existing values (read the comments in blkarray package for some thoughts on that:-)
@AndrewZabavnikov and it's a case of diminishing returns, the one line of code off the top of my head above almost works with a bit of tweaking and if it does 90% of the cases in a real document, but you have to use explicit \bigxx for a couple of complicated nested ones, is it worth a couple of weekends coding and 20 years of bug reports, trying to make a robust version that can do those couple automatically?
@NicolaTalbot Oh. :( I found an answer in SO about using BufferedReader with a thread attached to it, so it hides the input as it's being typed. Quite clumsy.
@PauloCereda Yes, I found a tutorial which works by doing a backspace after each character. I might add it as a less secure alternative if there's no console.
@AndrewZabavnikov probably (or at least hold the right to reject such electronic submissions) many of them don't use tex for printing they just accept latex for author convenience and then convert to some in house proprietary system, so if the author has used lots of clever tex tricks and the conversion fails, they don't want to debug that.
@AndrewZabavnikov well tikz or pstricks or just include it as an image (which may have been made with tikz of course) basically it depends on the journal, don't spend hours on some fancy \catcode changing syntax parser if you are going to submit it to a journal that needs to convert it to word for their in house review tracking system....
:13373081it depends it boxes and measures stuff, that is hard for a convertor that doesn't have a typesetter to hand. Try it with latex2html or tex4ht or latexml convertors to html for example. It will most likely break them without specific customisation, and if a journal requires html conversion for the web or ebooks or whatever such customisation slows them down and costs them money. but a journal that is just going to typeset it with tex wouldn't even notice it was there, it would just work
@AndrewZabavnikov Oh I have distributed lots of those (look at xmltex :-) but I don't necessarily expect everyone (in particular journals to use it) Look at it this way I was once told by someone who published math papers that they got an author submission, and removed the documentclass and added their in-house documentclass with the journal page size and system fonts, If the paper worked it went on to be processed, if it failed they spent no time..
.. looking at the macros, they just sent the pdf to india where it was rekeyed from scratch which seems bizare but that was a fixed (low) rate per page rather than paying a TeX consultant at US rates to figure out what went wrong.
@AndrewZabavnikov latex2html is just a top level perl script that uses string replace on "knwon" latex syntax, so even the simplest macro breaks it unless you make a matching definition, tex4ht actually uses tex (it is a specialised dvi driver so it can cope with arbitrary macros but can be a beast to configure latexml uses perl but basically fully re-implements texs parser (well enough to cope with weird stuff like y xii.tex christmas carol) (tex4ht and latexml are the only ones that can do that) ..
.. mathjax is javascript and like latex2html doesn't really cope automatically with any tex definitions, it needs matching javascript for eachsupported package
@AndrewZabavnikov no as keep coming back to the point that tex's execution is interwoven. You can't choose the size of your bracket (an expansion level \if) until you have set your trial box 9which requires the full tyesetting engine)
@DavidCarlisle I'm proposing using full TeX to get extra information and then on later stages to use this information to modify original .tex. Can i rely on \vrule (strut) support?
Or, put it another way, what is the most intentional way of saying how delimiters' sizes should be chosen? Is it \vphantom after all? That would be sad because this way it requires many repetitions in some cases to get things done.
@tohecz I think it is just someone trying to collect statistics about users per country. I don't really see the point, but it seems harmless. I'm surprised there are so many Indian TeX users. I don't know if any others personally.
There are of course those River Valley people in the South, but they are a business.
@DavidCarlisle I wonder why a journal would not use TeX internally, at least if they do scientific stuff.
@DavidCarlisle That's pretty weird. You mean retyped from scratch? Wouldn't the typesetter introduce mistakes? I dealt with one such person recently. He was pretty dumb.
@tohecz I hope you are feeling better.
Is there an easy way of saying in the preamble - please wrap the whole thing in a verbatim environment?
@FaheemMitha Very often this is circumvented by having it keyed in two or three times independently and doing an automated differential analysis. We once had a meeting with a company who would ship German loose-leaf collections to china by the cargo container to have them converted to SGML that way.
Interesting side fact: No need for the typing teams to know German when it's done that way.
@StephanLehmke That sounds rather inefficient. Plus it must be insanely boring for the people doing it, expecially if they don't even know the language they are typing in.
@FaheemMitha Uh, not wanting this to come over wrongly, but I assume there are a lot of jobs which are insanely boring (for instance processing mandarin sections).
@FaheemMitha it sounds inefficient but look at how many tex experts procrastinate here rather than fixing stuff, and just re-keying it at a pre-determined cost per page is a known cost and that's what people in suits like to hear.
@AndrewZabavnikov well for mathjx you could use \mmlToken to directly code teh mathm in tex syntax and specify the size in differemt ways (but you can not measure things as you can in TeX unless you want to really hack the javascript)
@DavidCarlisle No, no, no. The intent is the following now. Get the original document (with my packages' macros), pass it through TeX once, get it to write the needed info (the biggest material inside each pair of bracket) into some helper file, then process the document yet again removing import of my package and replacing my macros with needed \vphantoms.
And I'd like to do it in renderer-independent way.
@DavidCarlisle You recall I was talking about Lamport's interview, where he talked about something better than TeX's macro expansion. So, you think that he might have been wrong about finding something better?
@DavidCarlisle I have a text file, and I want to latex it, but make it verbatim. So, instead of wrapping the text with a verbatim environment, I thought it should be possible to somehow say in the preamble - this entire file is verbatim.
I thought the em measure of length was a measure relative to the page size. Is that not the case?
@FaheemMitha it's so much simpler to have another file that includes it with \verbatiminput otehrwise once you make everything verbatim (easy) you have to stop and finish up the file by hooking into etex's \everyeof hook and stop verbatim there etc
@PauloCereda Ta-da! datatooltk version 1.1.1 now works with arara. I've added --noconsole-action switch which can be one of: stdin (use System.in), gui (use a dialog box) or error (just give an error if there's no console). The datatooltk.yaml sets gui as the default, so even if arara is used without --verbose, it will still prompt for a password.
@PauloCereda I'm tempted to say that it's better, I can even hear the chat gong ;) just now it's not exactly painful, but I have a feeling like that someone superglued my left ear shut :(
anyways, gotta go for dinner, they close in 1 hour and I really don't want to miss it
Do you think it's worth me replying to the OP's comment to say that I guessed the OP was fairly new to LaTeX which was why I added links to help create a MWE?
@PauloCereda I thought about putting the faintest shadow of the Dolan you made for Pops as a TikZ background picture, but I feared someone might actually see it XD
@tohecz I didn't realize how much of a table structure it was… I have them set up as minipages. Introducing a \vfill definitely did not do what I expected (but did exactly what should)
Do you think it would be better to typeset it as a tabular?
And last two things that come to my mind, more suggestions than anything stronger: 1) I'm not sure how the sf, rm and sc fonts go together if it's zoomed in or printed, on the zoomed-out one it looks a bit "overdesigned", but as I say, that's a personal feeling and only on the priview
2) isn't bullet a bit boring? what about \rule[0.1ex]{1ex}{1ex} or something else, maybe just try couple variants, you might find something else more pleasant or get back to bullets ;)
@cgnieder Thanks for the answer. Currently we're not sure what the policy will be. The Editor-in-charge would prefer titles of pure text and no math at all, I would prefer only enforcing the 1st thing to be a real word.
I think that along with [utf8]{inputenc} support, one would use the support of the good old commands like \' too, and then it would be fine
@PauloCereda Psmith, the TeX bot: Good night! I'm Psmith, the friendly TeX bot - the p in my name is silent, as in pshrimp. I'm here as a companion to our fellow users in the typographic land. As you probably noticed, I always reply under Paulo's account, but do not despair, I say, my replies are always preceded by my own name. Enjoy your stay at TeX.sx! If you need any help, just ask our chat residents. Cheerio!
Psmith, the TeX bot, in fixed font mode: Here's the output from texdef:
**Psmith, the TeX bot:** I'm terribly sorry, but I think `texdef` didn't like your input. Could you take a look at the parameters?
Psmith, the TeX bot, in fixed font mode: Here's the output from texdef:
**Psmith, the TeX bot:** I'm terribly sorry, but I think `texdef` didn't like your input. Could you take a look at the parameters?
@PauloCereda Psmith, the TeX bot: Here is your fortune: Confucius say you have heart as big as Texas.
!!/fortune
@PauloCereda Psmith, the TeX bot: Here is your fortune: Confucius say: if you think we are going to sum up your whole life on this little bit of paper, you are crazy.
Damn you Confucius!
!!/fortune
@PauloCereda Psmith, the TeX bot: Here is your fortune: Someone has googled you recently.