sty2dtx is a CLI tool to convert a commented style file into a Documented TeX file (dtx).
It was written and works wonderfully for LaTeX2e packages, but expl3 offers a lot of happy times for package authors.
Unfortunately, expl3 also brings with it some hitherto unconventional syntax, such as un...
Hello everybody! Here's a question (unsuitable to TeX.SE, I guess, so I'm asking here). I'm writing (together with a colleague) an introductory book on LaTeX, aimed especially at students who are going to write their theses (math/CS) in LaTeX. Any suggestions about what to include? (We have our own list, of course, but we may have omitted something important.)
In particular: I'm thinking about a chapter on "Automation" (idea: "LaTeX does many things for you"), like the label/ref mechanism. Any other suggestions for things in this chapter? (It might have been a bad idea, since there will be separate chapter about, say, bibliographies, ToC is covered elsewhere etc. Any opinions?)
@cfr it's possible. However, let's suppose that it can't be him :)
@mbork I'm not sure if currently more books for university students are necessary, but it's your choice. I would certainly have a look at Nicola Talbot's Using LaTeX to Write a PhD Thesis.
However, the true question is: Do I want to break my habit of always carrying a Bible while on a long journey when I certainly don't need it, or do I not?
@mbork ah I see your point. Well, the question is whether it's better to make a new book, or translate some of the existing ones (most authors would give a permission for the book to be transslated). Sorry, the comment with the Bible is just me venting my travel fever, you can happily ignore it :)
I see. Well, translating is not an option - especially that an important part of the book will be "what to do to make LaTeX obey Polish typesetting traditions".
Also, we want the book to be kind of a "LaTeX cookbook" (indeed, this is the translation of the title), centered around recipes ("howtos") and not a regular "lecture-style" thing, like the "Not So Short Introduction" and so many others.
Yes, you're right. This is a concern. In each "recipe" we show three things: source code, output and a (concise) explanation.
The problem with students is that they don't want to read a lot, they want the job done. And it's not entirely irrational.
So we put strong emphasis on the "concise" part.
Also, take into consideration that they are bachelor/master's level students, not very likely to use TeX after graduation, so they don't want to spend more time than necessary on it. I know this is harsh for us TeX lovers, but this is reality...
@mbork well, opening a course on something doesn't directly cost money to the department (of course there're costs, but are "hidden"), so you can try to push this through ;)
Yes, it's true, too. But the students are not aware of that. They have to write their thesis in LaTeX, they hate it (the thesis, not necessarily LaTeX), they probably want to forget the whole experience ASAP. Telling them that LaTeX might be useful for them in their professional life might result in a big ORLY?.
@mbork If your focusing on Math/CS, an appendix about the language itself wouldn't be a bad idea. It was an epiphany when I discovered the lisp-ness of TeX.
@SeanAllred: thanks. (Though TeX is not an acceptable Lisp;-).) And our math students know (unfortunately) next to nothing about programming. This would only confuse them...
Well, maybe - theoretically. From the practical standpoint, actual programming in TeX is a PITA. (I hear that expl3 helps a lot - I'll have to learn it some day.)
@SeanAllred 'I want code for latex' had a depressingly familiar look... (Though I seem to have managed to miss the main events earlier...) Perhaps it is just an unfortunate turn of phrase on a coincidentally similar topic? And the tone is not... as unreasonable...
I must be doing something incredibly stupid, but I've boiled it down just as far as it can go with no luck. I'm working on a bug that's cropped up in a recent commit in pagectrl @ca7dc3.
I have the following minimal example:
\documentclass{minimal}
\AtEndDocument{\typeout{wat}}
\begin{docume...
@Johannes_B: Well, yesterday morning was some more snow even down in the valley where I live, but on top of the mountains, there is about 10 cm (not much, right now, but more will come)
Hoye-Crest is a summit along Backbone Mountain just inside of Garrett County, Maryland. It is the highest natural point in Maryland at an elevation of 3,360 feet (1,020 m).
The location, named for Captain Charles Hoye, founder of the Garrett County Historical Society, has a marker and offers a view of the North Branch Potomac River valley to the east. The location is accessible via a path leading from U.S. Route 219 to the west.
== Accessing Hoye-Crest ==
There is no direct road access to Hoye-Crest. The best route is a hike in from a point along U.S. Route 219 just south of Silver Lake, ...
@ChristianHupfer Very true :) I've never seen the 7000 ft one though – that's way down in Mississippi… there's so much of my country that I just haven't seen :(
I've heard the Rocky Mountains are something to behold
@JosephWright »The author of achemso is also the maintainer of biblatex-chem, providing a style chem-acs, which covers most of American Chemistry Society Journals.« :-p
A professional approach:
Leslie Lamport, developer of LaTeX, called it:
LaTeX – A document preparation system
as is visible on the LaTeX project website. Moreover, your first slide could include the fundamental use of LaTeX (also from the above reference):
LaTeX is a high-quality types...
@SeanAllred you can generate an error but if the user decides to scroll past the error... you could try to \aftergroup the \end recursively until you get to outer vmode but that isn't guaranteed success, it depends where the token ends up
I looked at the documentation for the quoting package. I don't see an obvious way to add vertical spacing to a piece of quoted text - should I just add the spacing manually?
no, hang on, there is a vskip. never mind, let me try that.
not sure what listvskip is. the manual says "A boolean option that, if enabled, adjusts quoting’s vertical spacing to that of list environments (and ignores vskip in the process)."
Never noticed what the spacing of list environments is.
I tried \usepackage[vskip=10in]{quoting} but this has no visible effect on before and after vertical spacing. Am I using the wrong syntax?
@FaheemMitha Never used the package, and a mwe is something i can test right away. Reading documentation along makes it even faster. But just documentation and a few off your thoughts is like walking blind through a mine field.
@DavidCarlisle Do you allow to change your answer in "Why does \msg_fatal: show a seemingly unrelated error" by egreg? The clean code were changed by unclean code:). I personally would never allow this...
@wipet to be honest it was marginal, if it hadn't been @egreg I may have rolled it back but actually the OP in this case would probably prefer the L3 version so no harm done.
@Johannes_B funny, a bare bones example works. wonder what is going wrong in my actual file.
Apparently Wikipedia writers are sometimes prone to understatement. The entry on Mozar says "Mozart [...] was a prolific and influential composer of the Classical era."
@wipet The converse: changed complicated code into easier one: "if inner mode or horizontal mode, push the token after the group; otherwise do the required job”. No \expandafter sequence for removing the two \fi. You can't judge some code unclean just because you don't know the language.
@egreg It was only little joke. But you can't assert that I don't know this unclean language. I know it but I don't like it. If I see a TeX code then my internal expand processor runs automatically in my head. But this is impossible when I reading L3.
@DavidCarlisle OK, but satisfaction is here: the stick in "Is there a way to store information..." was moved from unclear code to the more clear code:)
@Werner It sounds like a reasonable approach. I'll give it a try. Do you agree with @Johannes_B that the quoting environment is not needed at all here?
@faheem LaTeX has a quatation and a quote environment. quote is defined as \newenvironment{quote} {\list{}{\rightmargin\leftmargin}% \item\relax} {\endlist}
that can be easily done as an mdframed environment.
@Johannes_B Ok, I'll try that. @Werner I guess I'll need a skip below and a skip above? I'm not sure why you mentioned just a skipabove. Did I miss something?
@Werner If i am not completely drunk (actually, i am sober) there is no skip at the end of the quoting env, right? At least non put by quoting directly.
I am organising yet another lottery and Springer have kindly agreed to donate two copies of LaTeX and Friends (see also).
This year I decided to be the judge of the lottery. The lottery closes when the judge has announced the last winner. The judge's decision is final and there shall be no disc...
@wipet Now add some code for mapping all data corresponding to a given ID, without fixing in advance what are the allowed fields. Possible, of course, but it comes for free when you store the data in a property list variable.
I just coompared LaTeX templates to a big prepacked bag of outdoor supplies for every occasion. I don't need the »Subways of London photo book« when tramping in vancouver.
And now, for something completely different: Weihnachtsfeier. See you guys.
@DavidCarlisle: Do you know of any free sources I can use to convert the XML schema of SE data dump into something database-y? Like a .db or something else, readable via FoxPro or Access?
I have some serious issue with my table.
First, I would like to know how to put N in the middle of the two rows. Right now it looks like:
$^{\pm}$
Second, if I compile my document right now, it says: "Package array Error: Illegal pream-token (D): `c' used.". If I add \usepackage{dcolumn} it ...
@Werner I tend to use xslt for all xml work, so given a more or less reasonable description of what's there and what access needs conversion shouldn't be hard
@morbusg it's a bit low traffic (and I'm not sure who monitors it, I know that Davide and Peter on the MathJax team monitor the mathjax tag, they may watch mathml as well) stackoverflow.com/questions/tagged/mathml
@morbusg mtable, in some alternative universe you could use a single column mtable with malign marks but only mathplayer ever implemented that I think, but you can get reasonable layout with mtable, mathjax supports most of the ams alignments that way.
@morbusg with the above right menu show mathml makes
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em">
<mtr>
<mtd>
<mi>a</mi>
</mtd>
<mtd>
<mo form="infix" lspace="mediummathspace">=</mo>
<mi>b</mi>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>x</mi>
</mtd>
<mtd>
<mo form="infix" lspace="mediummathspace">=</mo>
<msup>
Is it needed to have % at the end of = when splitting one equation into 2 lines? For example, SW generates code where it puts % at end of each linem before breaking it to seconds line. Like this:
@Nasser it's (always) the same as asking if it is ok to put a space at that position so you don't need a % for same reason it is ok that you have several spaces before the =
Another simple question. SW adds \displaystyle\int\limits even if I am using \begin{align*}....\end{align}, which seems redundant? I removed the \displaystyle and nothing changed in the output. Here is an example from SW:
@morbusg there is a lot of back story behind that. Still expect they'll come round in the end but I've been working on that for 15 years, you need to take a long view of these things
@tohecz the latex output might not be very good, but it is makes it easier to write complicated math on the screen. it is trade off. it is like writing assembler by hand, vs. using high level language to generate assembler, which will be hard to read.
@tohecz it is of similar vintage to 2e, and actually had some interesting ideas. Not so much on generating the document instances (which as Nasser shows have all the usual traits of generated code) but on their visual style designer they had (even back in 199x) parameterised classes where almost all reasonable lengths were pulled out as parameters and there was a visual tool where you could set them by sliding things around.
@PauloCereda not really. I'll get it during spring I think, the risk of my laptop getting broken in the middle of moving back and forth isn't worth it :)
@PauloCereda I think it'll be vanilla for now, then :) Still waiting for a new graphics card to find its way into my budget, but that's a while out yet.
@SeanAllred That was exactly something I was gonna ask you. :) I heard that, for local mods, it's a matter of injecting the classes inside the main application. But with a server...
@PauloCereda Yeah. I know that it used to be a radically different process, but I heard rumors that the team merged SSP and SMP – in other words, when you're playing single player, you're really standing up a local server and connecting to it
This is actually a very good question.
"Note" You should have the latest version of Java installed before trying this as you need that to play minecraft.
For the client version
First you download and run your 'regular minecraft' at least once. This ensures that your .minecraft folder has been...
which gives instructions for both client and server – the answer was given pretty recently so I think it is accurate. I'll get back here with the results :)