@EnthusiasticStudent Writing a package implies you have something you want to give out to others: the programming techniques are the same as if you only want the code for yourself
@EnthusiasticStudent BTW, no subroutines as TeX is a macro expansion language!
@EnthusiasticStudent: Well, xparse is not really programming related, but provides means for more flexible macro interfaces. The programming stuff is in etoolbox ... just as some comment on my last lines
@ChristianHupfer Good sources to start with... Thank you very much. I have seen some codes on the site using that xparse codes. It will improve my LaTeX too....
@PauloCereda: Quite busy... I have an important presentation to be done till Tuesday, being part one of my promotion run: "How to teach personal training in Mathematics" ... Teaching teachers that teach... And how are you?
@ChristianHupfer Actually, I have always thought about a package based on the features of Tikz and Pgfplots to draw structural engineering drawings in LaTeX documents (I have masters in structural engineering (civil engineering)). But I do not have enough programming knowledge unfortunately...
And there are no more \beginL and \endL in math lists!
\setbox0=\hbox{$a+b$}\showboxbreadth=1000\showboxdepth=1000\tracingonline=1\showbox0
> \box0=
\hbox(6.94444+0.83333)x21.79968
.\mathon
.\teni a
.\glue(\medmuskip) 2.22217 plus 1.11108 minus 2.22217
.\tenrm +
.\glue(\medmuskip) 2.22217 plus 1.11108 minus 2.22217
.\teni b
.\mathoff
Hi all! Is something like this even possible? (Sortable tables longer than a page.) I don't think so based on my understanding of OCG, but I might be wrong:
Look at the following MWE.
Here we have to tasks that I am trying to solve.
Task 1:
First. If i try to use the command dtlloadrawdb (instead of dtlloaddb) everything wents fine, until I use the first DTLrawmap command. This results in an error.
Task 2:
In case of long tables, I cannot produces...
I want to use LaTEX to write a fascicle. So I need some specialized design. For example a specialized design for headers, specialized edging, rearranged margins etc. So my questions are:
Which document class should I prefer? Or should I start my own one? If I should start my own, could you recom...
Are you really sure that using Latex makes you faster and more productive against other text processors?? Or that makes you feel geeky and smart, and that pays off?
@HarishKumar It's a poem written to show the glory of Rome and Julius Caesar who allegedly was a descendant of Aeneas (who in turn was allegedly the son of the goddess Venus, the Latin version of Aphrodite). It was dedicated to emperor Augustus, the adopted son of Julius Caesar.
@HarishKumar We had to study it in the first year of high school (in Italian translation, though).
@HarishKumar In the second year we had I promessi sposi, the basis of modern Italian language, by Alessandro Manzoni. Third, fourth and fifth year were for Dante's Commedia.
@FaheemMitha: Ezechiel 25,17: The path of the righteous DuckMan is beset on both sides with deeds of evil non-duck-friends... And the revenge of DuckMan will come over you ;-)
@FaheemMitha: @PauloCereda is actually obsessed (he call's it fascinated) by ducks... We've tried everything to cure him of this, but his powers are strong ;-)
@FaheemMitha I am a fan. :) There's actually only one duck I can remember in the whole series: it's when Bender asks what if he were a giant robot. Fry is near a pond, feeding a duck. He looks at the duck and says, "Do you want to be my friend?" And the duck bites him. :)
Guys, how to I make the page containing \chapter to use a different page style? I'm using memoir. So far, I could not find something relevant in the main site. This has been asked a million times now, probably...
@DavidCarlisle But I'm in pdfTeX :P (I'm really considering a switch to ConTeXt in this book, but the problem is the non-existent-aged-documentation…).
@Manuel switching to lualatex is rather less drastic change than switching to context in that case:-) although as I say doing as you suggest above should be fine.
@DavidCarlisle It's a messy question with tons of comments. And it has evolved along time. So I cant' really be confident here but: IIRC, last time I checked, it didn't work correctly.
@Manuel It's kind of a trivial issue really, you just want to make sure that there is a \nobreak\hspace{0pt} before teh dash which can't take more than a line of code however you look at it.
@Manuel by default in pdftex you could not enter a character — anyway so it just depends what the active utf8 characters encoding that are defined to do.
@DavidCarlisle Well, I think none of the answers did solve the issue perfectly (which is a problem, since revisiting it now is difficult, lots of changes, lots of comments).
@Manuel as I say, if I understand the issue (and it's possible that I don't) I can't see how you could only half solve it if you solved it at all as I wouldn't expect more than a line of code
@DavidCarlisle I will put some time right now to see what was the problem exactly.
@DavidCarlisle Okey, firstly, the minimal example there.
If you compile (without fontspec) with pdflatex, with ligature em-dash (i.e., --- three dashes) it doesn't hyphenate the word.
So, that is a problem by itself. Now, I can accept to input unicode-em-dash (in fact, not only accept, but that's the way I input it). If I use that (with inputenc) it does hyphenate.
With lualatex (fontspec loaded) it works only with the unicode em-dash. With xelatex (and fontspec) it doesn't work (nor the --- nor the em-dash).
@DavidCarlisle So, problem is: it never works with --- (which would be nice to have a solution); but in my particular case I do input the unicode em-dash, and there, there's a problem with xelatex.
So the question is still open until, at least the xelatex one is fixed (and I think it didn't work with luatex when I asked, because that now it works). Feel free to add the two line answer.
@Manuel there's always the possibility of just making the emdash active and defining it to allow hyphenation, but I want to understand xetex/luatex differences so I'll look at that, might be tomorrow
@DavidCarlisle Now thinking, may be I didn't check with LuaTeX because I wasn't aware of it at that time (just XeLaTeX), and, in fact, ConTeXt solution worked from the beginning. So the end problem is that it doesn't work out of the box with XeLaTeX.
By the way, what should I/we do with that (kind of) question? I mean, it has TONS of comments, lots of messy edits, etc. And in the end there's no clear solution. I would like to remove all, and start from zero.
@DavidCarlisle Yep, that's what I mean.
@DavidCarlisle As an aside, shouldn't with xelatex and lualtex not only work with the unicode em-dash, but also with the ligature ---? I mean, they are supposed to be more intelligent, aren't they?
@Manuel Ok I can confirm that lualatex hyhenates the word with the emdash and xelatex doesn't, but I've been out all day and I'm tired so I may not look at why at this point, I could take the easier route of pinging @egreg and @JosephWright and see if they want to look instead....
@Manuel don't assume intelligence in computer programs.
@Manuel it's rather deeply built in to classic tex that it doesn't hyphenate words with a - (or ligatures made of -) so not hyphenating --- isn't a bug or lack of intelligence, it's a deliberate design decision. doesn't babel have a "- shortcut in some languages to provide a dash that does allow hyphenation?
@DavidCarlisle More :) Okey, so, since the problem is just the unicode em-dash in xelatex. The only problem is finding a suitable definition. The only answer that offers something (cfr's isn't a general solution, so it doesn't work) is JLDiaz's. But, as seen in the comment, there was problem with his definition.
Javier Bezos proposed one new definition \newunicodechar—{% \leavevmode\nobreak\hskip0pt\hbox{---}\nobreak\hskip0pt\relax \futurelet\esptestnext\esptestdo} \def\esptestdo{\ifcat\esptestnext\space\allowbreak\space\ignorespaces\fi}. But since he didn't post an answer, and nobody said if it was good or not… it was left there.
So that might be a solution. But I need someone to post it as an answer (and understand that it does work in any case).
@DavidCarlisle @Manuel It was one of the reasons why I wrote newunicodechar: a friend had to use prosodic marks for Latin, so vowels marked ăĕĭŏŭ āēīōū, but the utf8 option only recognizes ă.
So one doesn't need to chase for the code and just do \newunicodechar{ū}{\=u}
@DavidCarlisle Maybe. The strange thing is that if I \showbox a box with —, there's no \discretionary, but it appears before the penalty if I have —\nobreak,
@DavidCarlisle Probably Jonathan wanted to emulate the effect of --- in standard TeX; with the mapping mechanism, --- is transformed into U+2014 before boxing, so the em-dash received the same property of the hyphen as far as adding discretionaries are concerned. It was an error by Knuth to begin with (but possibly with some justification).
@egreg yes sounds about right, not sure what to do about it, luatex just doesn't follow tex but in general xetex does try to stay closer so probably behaviour of --- at least is hard to change
@cfr thanks for the thought, but I decided to let it go, after all I could have made an answer (but wasn't sure if that was really what the OP wanted)
@cfr I'm calling it right now: there will be a comment posted to the effect of "but I don't want to write (angle:distance) for polar coordinates, I want to write (distance:angle)." ;-)
@ChristianHupfer Let's say it started as a private project, then people liked the idea, and now the community will help paying for the books. :) We will use them during masses, available for free for every person who wants to sing the songs. :)
@PauloCereda: I never thought that I would have the possibility to 'talk' to living legends such as David and Enrico, Heiko Oberdiek etc. And ducks of course ;-)