11,081 reputation
22647
bio website about:blank
location Hilversum, Netherlands
age 27
visits member for 2 years, 11 months
seen 16 hours ago

I'm a discrete mathematician. My main research interests are discrete optimization and scheduling in specific. I've been using LaTeX on and off since 2007, mostly for homework assignments. I have really gotten into it while writing my thesis though. Scheduling problems call for quite a lot of diagrams, so my main focus and interest within LaTeX is TikZ.


Nov
3
comment \newcommand and name of command
Out of curiosity, is there any reason you are going through an extra layer of macro? That is, it would work just as wel if you left out tempname and used \tempnameaux{#1} right before adding the old glossary entry, wouldn't it?
Nov
3
comment \newcommand and name of command
Aah, the uppercase group can end halfway through the csname, that's good to know. Makes sense, actually. Thanks :)
Nov
2
comment \newcommand and name of command
You could simply wrap the newglossaryentry macro in something that defines two new macros (upper and lowercase) and then does the original newglossaryentry?
Jul
17
comment tikz setting font size to pts
Don't think Tikz is relevant, check this question and associated answers: tex.stackexchange.com/questions/48276/…
Apr
24
comment Automatically capitalise the first word in each sentence
If you happen to go with one of the answers provided in @Ailurus's link. Please go with the one that uses a script to change the input before compiling and not with the one that make the period active. That has the potential to break all kinds of stuff. Really, \tikz\node at (0.5,0.5) {please don't};.
Apr
17
comment How/where to test my template document?
You can of course install tex packages locally on your faculty linux server. Every user has a local texmf tree, you can install etoolbox there and it will work fine.
Apr
14
comment small cap i for 1
You could replace every 1 by a smallcaps i by making it active. For instance \catcode`1\active\def1{\textsc{i}} would do that. This could cause issues though, if some packages uses a 1 in a command sequence or something like that. So you have to consider that.
Apr
13
comment Nice-looking $x_i^j$
If you use \smash{j} instead of j TeX will think it has zero height and (more importantly) zero depth and it will look more like the version with the 1.
Apr
13
comment Change make contact graphic in TikZ circuit lib and add closed option
@student: I hadn't tested it completely (hardly at all actually) and the changed anchor slipped my mind. The updated code should work as expected.
Apr
10
comment How to place arrows with captions pointing precisely to details inside of a picture?
Have a look at this question then: tex.stackexchange.com/questions/9559/…
Apr
10
comment How to place arrows with captions pointing precisely to details inside of a picture?
Is the image (the clock in this case) also TikZ-generated? Or is that an external image you are including?
Apr
10
comment Latex Beamer Block: Increase border width
beamercolorbox does not have this option. The options for it are listed on pages 124-125 of the beamer manual. To get boxes with frames you can use TikZ or mdframed.
Apr
9
comment How to keep aspect ratio of marks in TiKZ plot when using different xscale and yscale?
perhaps use pgfplots instead to do the plotting? Then you can add the scaling as an option to the axis environment.
Apr
9
comment How to import ASCII coordinates to TikZ
If the OP uses this exact method for multiple lines as well, then no. He can of course do the reads inside of a single tikzpicture environment depending on the results he wants. I'll add an example where it reads the entire file.
Apr
9
comment What are penalties and which ones are defined?
They are not, just the penalties associated with page breaking, as far as I can tell. There are some other for ,e.g., line breaking which are discussed in chapter 19. There might be others still besides those.
Apr
9
comment What are penalties and which ones are defined?
Section 27.4.2 of TeX by topic lists breaking point penalties. I'm not sure whether these are all the penalties there are though.
Apr
8
comment Automatically convert quotations in the form of “abc” to become ``abc"
@matth: I completely agree. In my academic writings I (pretty much) never use quotes. The only time I use them is when passing a literal string to the pgf math engine and in that case I need actual quotes, not the converted ones. Which mostly ends up in me typing \" and then removing the ``. This doesn't happen often enough for me to disable the autoreplace though. I know what I want in what case and how to obtain it. If you are using mostly quotes as in quotations it's an option though :)
Apr
8
comment Push/Pop or save a length/dimension?
@AhmedMusa: Thanks for the example. Better safe than sorry, same goes for the \empty marker of course.
Apr
8
comment Push/Pop or save a length/dimension?
@AhmedMusa: Out of curiosity, do you happen to have an example of when an assignment to \toks0 causes problems? As far at the \empty goes, I don't see that as a real problem, considering what the stack is meant for.
Apr
7
comment Push/Pop or save a length/dimension?
@egreg: good point. I added two \globals. I think this should be sufficient to handle groups. Of course, the assignment to \parindent would have to be made global as well for it to persist after the end of a group.