But I think one can contribute to LaTeX in many ways without knowing all the ins and outs of TeX, the program. Getting some programming background in more standard languages would be a great start. Being trained in Mathematics makes this infinitely easier -- it becomes an exercise in learning a new language and trying to express your ideas in it. Good luck!
If I create a question on tex.stackexchange, can I delete it later?
Also, can i create a file and store its contents in a variable using latex? I am planning to conditionally typeset my documents, based on the values of that variable
something like
IfFileExists readfile var x = filecontents
if x = 0{ \newcommand{\product}{foo} } if x = 1{ \newcommand{\product}{bar} }
I am trying to implement single sourcing such that same document can be conditionally typeset for number of purposes. This is what I would like to do.
\IfFileExists{../DecMaker.txt}{
var x = DecMaker.txt %the file will contain a single digit number
if x = 0{
\newcommand{\product}...
@manucpp I'm only a beginner, I've seriously used LaTeX only for about a year, but also a beginner could reach 10k! BTW, as you saw, TH has already answered!
@manucpp \OSnumber is a macro. You can make store it into an integer register, if you so prefer, but \ifnum will read it anyway: \ifnum\OSnumber=2 good\else bad\fi (don't forget the space after the constant).
@CarLaTeX Take it from us. We tried with the curry and the spices. It got watered down and manufactured on an industrial scale to no end. We got colonized, and sold as indentured labour, as an added bonus. XD
@manucpp And someone there thinks that pizza is Spanish? This is still new. But I don't travel much so I guess I can often be wrong about what other people think
In the following MWE, I'd like the red-fading-tikz-rectangle-line to underline the three "subtiles". Before I start tinkering and guessworking around: How to accomplish this neatly?
\PassOptionsToPackage{svgnames}{xcolor}
\documentclass[a4paper]{article}
\usepackage[framemethod=TikZ]{mdframe...
Dear Figaro, "...io son Lindoro, che fido v'adoro..." but I would have preferred "Ecco, ridente in cielo spunta la bella aurora...". No "aurora" this time. ;-) — Gabriele Nicolardi43 mins ago
@UlrikeFischer -- oh, come now! some of us from the u.s. (i can't speak for canada, which i however do find quite civilized) are reasonably selective about pizza. even @egreg has approved of some that i've described as my favorites.
In the following MWE, I'd like the red-fading-tikz-rectangle-line to underline the three "subtiles". Before I start tinkering and guessworking around: How to accomplish this neatly?
\PassOptionsToPackage{svgnames}{xcolor}
\documentclass[a4paper]{article}
\usepackage[framemethod=TikZ]{mdframe...
@PauloCereda -- i guess the report should go promptly to the local folks who encouraged you to submit the paper. and then, how about some attention to the thesis?
@egreg not sure, other *enc.def files also have csnames with @ so a possibly undocumented convention might be that the caller has to set that up... But it wouldn't hurt if we made \DeclareUnicodeEncoding do it. (what's the plan make \.S use \accent or \ooalign or something?
I am trying to write a few systems of equations, and I want the terms to be nicely spaced as below
2x + y + 3z = 10 \\
x + y + z = 6 \\
x + 3y + 2z = 13
Now, using some very ugly code, I was able to produce the results above.
\documentclass[10pt,a4paper]{article}...
@nuttyaboutnatty it would have been better as a real example on site rather than disconnected fragment but anyway presumably you defeated fontspec's heuristics to guess matching fonts, assuming there is a small caps font you can use the fontspec declarations to specify which font to use for each shape. why do you want to turn off microtype anyway?
1st case: \textsc yielding no effect, but rest of that columnn is nicely aligned:
\PassOptionsToPackage{svgnames}{xcolor}
\documentclass[a4paper]{article}
\usepackage{gitinfo}
\usepackage[none]{hyphenat}
\usepackage{fontspec}
\pdfprotrudechars=2
\pdfadjustspacing=2
\newfontfeature{Microty...
@nuttyaboutnatty unrelated but I'd never use tabularx for {@{}*{1}{p{\mycustomlength}}*{1}{X}@{}} it just makes tex work hard to work out the column width which you know in advance.
@nuttyaboutnatty if you are using pdftex using a system that's ten or twenty years old is fine in most cases. if using luatex I really wouldn't use a system more than a year old it was beta software and not really robust or stable enough
@egreg tricky in general as it's not always clear where primitive assignments happen (same true in 2e of course with futurelets in optional argument parsing)
@egreg yes particular cases can of course be encapsulated as some expl3 function, I'll let Joseph answer your original ping as I'm unsure what functions we have these days;-)
@DavidCarlisle The old trick of adding something at the beginning of a box; the code in the question is a stub, the actual code should be more complex.
@DavidCarlisle We've had a few issues with the box change, largely as the older version allowed \hbox_set:Nn \l_some_box \c_group_begin_token, _i.e. could be treated as the primitive
@JosephWright we had exactly same problem when 2e changed \sbox and \parbox to take an argument so you couldn't use \bgroup any more. some things never change:-)
@DavidCarlisle Without log-file it is difficult to say. It isn't clear which texsystem is used and how up-to-date (or not) it is. My first guess would be wrong size info.