« first day (1355 days earlier)      last day (3582 days later) » 

12:51 AM
Hiya, I can't find anything like a "renewtheoremstyle" variant to \declaretheoremstyle that thmtools offers. Does this even exist?
 
 
6 hours later…
7:16 AM
anybody's here?
i need help to control the line height
 
@izabera Example?
 
i'm trying to create something for this question: tex.stackexchange.com/questions/183447/…
this is what i made so far
the first 3 pictures are ok-looking but einstein is completely off balance
ideally i'd like to have the line height = the 'x' width in the typewriter font
my current setting is just this: \usepackage{setspace} and \setstretch{0.45}, which works fine for the colored pictures
 
@izabera \ttfamily \setlength\baselineskip{1ex} but typically characters are going tp be taller than that so they'll force bigger spacing?
 
7:33 AM
@DavidCarlisle exactly, taller characters are forcing bigger spacing. how can i avoid it?
and i'm sorry but the result of \setlength\baselineskip{1ex} is way worse than what i had
(it's supposed to be a square)
 
8:04 AM
0
Q: Where is the documentation?

darioberWhere or how do I find the documentation for a given Latex command? For example, in R I get the documentation for mean() with ?mean or at the manual pages http://stat.ethz.ch/R-manual/R-patched/library/base/html/mean.html. In Java there are the Javadocs to tell me what parameters a method takes ...

14
Q: LaTeX, package documentation look-up

RobottinosinoI am on OS X (10.6 Snow Leopard) using TeXLive-2011 to typeset a simple .tex file I am editing in Vim and trying to learn. My problem is: how do I... gradually learn about what TeX can do for me get detailed information about how I can use a specific command (e.g. get the full "command syntax" ...

 
@izabera well it depends what you want to avoid, you said you wanted to specify a line spacing of 1ex and what I did does that (you might also want to add \setlength\lineskip{0pt}) but tex will only keep to the specified linespacing if you don't use characters higher than an 1ex tall.
 
@DavidCarlisle here is a zoom up of first picture with \setlength\baselineskip{1ex} \setlength\lineskip{0pt} and no other options
a lot of white space
 
@izabera you know the drill by now: make a MWE that produces that and we'll tell you how to remove the space:-)
 
8:19 AM
@JosephWright I am not satisfied with the answers (and questions either). Do we need a more canonical Q/A?
 
@Johannes_B Ask a meta question, perhaps, or just write a question ans start an answer straight away (CW?)
 
@JosephWright Well, then there will be my first meta question soon. Give me a few minutes.
 
@DavidCarlisle while trying to make a mwe i solved it! i was writing those commands outside of a minipage
don't laugh
 
@JosephWright Re tex.stackexchange.com/questions/57884/… the combination of table-space-text-post={**} and table-align-text-post=false leads to too much space on the right side of the column (siunitx 2013/07/31 v2.5s)
\begin{tabular}{
  S[
    table-format=-1.4,
    table-space-text-post={**},
    table-align-text-post=false
  ]}
  \toprule
    -0.88** \\
     2.27** \\
    -0.2** \\
  \bottomrule
\end{tabular}
 
@cgnieder Well yes, if you don't have enough digits somewhere that will happen :-)
 
8:31 AM
@izabera "while trying to make a mwe i solved it! " that is of course the main reason for asking people to make a MWE:-)
 
@JosephWright oh! my bad! The table format was supposed to 1.2. I need more coffee. Sorry for the noise...
 
@DavidCarlisle now the line height in the colored pictures is perfect, so i'm back to the first problem: how to force the line height to stay the same when characters are taller?
 
8:56 AM
@izabera what do you want to happen overprint the line above? \smash{A} would hide its height
 
Good morning
 
@DavidCarlisle \smash works like a charm!
 
@izabera make sure you have \leavevmode not \smash at the start of a paragraph
 
err... i'm just enclosing each character of the grayscale pictures in a \smash
@DavidCarlisle look :D izabera.altervista.org/asciiart.pdf
 
@izabera beware how you start the para if using smash is all I meant, consider these three cases:
\documentclass{article}


\begin{document}

X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X
X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X


\smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X}
\smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \smash{X} \
 
9:11 AM
thank you, i noticed now that without \leavemode the first character goes outside the picture
 
@izabera without leavevmode the characters stack vertically rather than horizontally
 
9:33 AM
Hello to everybody!
 
@AndrewZabavnikov: Hello
 
How to show \dimen in my custom units? (e.g. mm)
 
@AndrewZabavnikov use \showthe and then divide by 2.84526 in your head?
 
@DavidCarlisle :-) Thanks! Is there loss of precision in this case?
 
9:42 AM
@AndrewZabavnikov the accuracy of that calculation would depend on your head:-)
 
@DavidCarlisle :-) Given I do it precisely, even calculating periodical part of decimal fraction.
 
@AndrewZabavnikov: If the unlikely case you can't divide by 2.84526 in your head should occur nevertheless, you can have a look into the calculator package, see page 15
 
@AndrewZabavnikov tex always works in integer arithmetic using scaled points
 
@ChristianHupfer @egreg @DavidCarlisle Wow! So many answers.... I almost hate I asked given found the answer myself :-)
 
@AndrewZabavnikov well we are just here chatting waiting for the cricket to start
 
9:50 AM
@DavidCarlisle: "We"?
 
@DavidCarlisle wooo
 
@DavidCarlisle Well, it's always good to push responsibility to someone else (package creator in this case) :-)
 
@ChristianHupfer 10 mins to go: bbc.co.uk/sport/0/cricket/28286782
@ChristianHupfer see people get up early in Brazil just to follow the action chat.stackexchange.com/transcript/message/16631563#16631563
 
@DavidCarlisle: No, Paulo just did not know when the cricket match starts and hoped for a clue ;-)
 
@ChristianHupfer oy
:)
 
9:55 AM
@PauloCereda: How's the duck?
 
@PauloCereda If we get one of their batsmen out early you may see a scorecard like 7-1 for a while....
 
@ChristianHupfer No ducks ATM, sadly. :(
@DavidCarlisle Can't spot the reference. :)
 
@PauloCereda: Sorry, I thought you own a pet duck
 
@ChristianHupfer I wish I did, but I don't have a proper place to keep it. :( I have two cats though. :)
 
@PauloCereda: We don't have cats here in our flat, and there is a street with a lot of traffic, so it is too dangerous for them. But in a few months, we can rusticate again (hopefully) and then we will two cats
 
10:00 AM
Yet another question out of the curiosity. How to make LaTeX print only messages issued by me?
 
@AndrewZabavnikov Grep trickery? :)
@ChristianHupfer yay! :)
 
@PauloCereda Well, it's unclean.
 
@AndrewZabavnikov the silence package can help control messages from latex packages but messages from tex (eg full paths of input files) can't be controlled
 
Exactly what I wanted to exclude from output (full paths of input files) :-) ....
 
I am off for a while
Bye
 
10:19 AM
@ChristianHupfer See ya!
 
 
2 hours later…
11:53 AM
We had a variation on the usual spam, I see
 
Hi all, I forgot the name of the package which lets you put braces next to some (i.e., more than one) selected equations in {align} and friends. Anybody help, pleeeease?
 
@mbork empheq?
 
Thanks, that's it!!!
 
12:22 PM
@egreg: Just read that Allianz Parque will have free wi-fi! So we will be able to live broadcast games here in the chat and update our TeX distros while watching the game. :)
 
England: Yet to bat
India: 73-2 (27.0 overs)
 
@DavidCarlisle Oh no!
 
@DavidCarlisle Just two wickets in 27 overs? Bad!
@PauloCereda :) Are you going to see the games?
 
@egreg I'm planning to. :)
Probably next year.
 
 
1 hour later…
1:54 PM
@JosephWright It took some time but there it is: meta.tex.stackexchange.com/questions/4530/…
 
2:29 PM
Did people spot Elie Roux appearing? tex.stackexchange.com/users/33382/elie-roux :-)
 
2:42 PM
@JosephWright Yes. ;-)
England: Yet to bat
India: 140-6 (55.0 overs)
Venue: Lord's
 
Hi folks, how to produce 47, 48, 49, etc ? My code below does not produce what I want.
\documentclass[preview,border=12pt,12pt]{standalone}

\usepackage{multido}
\def\foo#1{\multido{\i=\numexpr45+#1\relax+1}{20}{\i\newline}}
\begin{document}
\foo{2}
\end{document}
 
Four wickets in the next 28 overs; better. ;-)
@Pleasedon'ttouch \number\numexpr45+#1\relax
\documentclass[preview,border=12pt,12pt]{standalone}

\usepackage{multido}
\def\foo#1{%
  \expandafter\multido\expandafter{\expandafter\i\expandafter=\number\numexpr45+#1\relax+1}%
  {20}%
  {\i\newline}}
\begin{document}
\foo{2}
\end{document}
 
@Pleasedon'ttouch \multido parses for a +: adding braces works for me
 
@Pleasedon'ttouch ^^^^
 
\documentclass[preview,border=12pt,12pt]{standalone}

\usepackage{multido}

\def\foo#1{\multido{\i={\numexpr45+#1\relax}+1}{20}{\i\newline}}
\begin{document}
\foo{2}
\end{document}
@Pleasedon'ttouch ^^^^
 
2:56 PM
@JosephWright He also knows how to award green ticks. ;-)
 
@JosephWright Nice solution.
Thanks.
 
@egreg Cool
 
@egreg It is also nice but consume more keystrokes. Thanks.
 
@Pleasedon'ttouch It's not really clear from the multido docs that the assignment is not simply a plain TeX one (for which my solution would fail): I did a quick trace of the code to work out what was going on.
 
@JosephWright OK.
 
3:08 PM
@HeikoOberdiek Did you see the pdftex.def bug report on c.t.t?
 
@egreg Elie Roux = gregorio dev... you... that's no coincidence. :)
 
@JosephWright That's the sine, as far as I can see. I can see \GPT@sign nowhere.
 
@egreg E.g. line 1586 as part of \GPT@NormalizeNumber?
 
If \GPT@sin expands to a negative constant, the two minus signs disappear as part of the \if and the absolute value remains; otherwise the positive value disappears as part of the true text and the negative is used.
 
@egreg I see that but \GPT@sin is never defined: should be \Grot@sin I think
 
3:23 PM
@JosephWright Well, nobody rotated their images up to now? ;-)
 
What's the point of closing a question with an accepted answer as a duplicate of a question with no answers? tex.stackexchange.com/q/191945/3954
 
@egreg That's what's odd :-)
 
I'd rather close the one with no answers. What do you think?
 
@GonzaloMedina I'll fix
@GonzaloMedina Both questions are the same so one could argue for merging, but a reverse-dupe is quite easy so I've done that (older Q dupe of newer)
@egreg You can only see the bug if \pdfsetmatrix is not available, which means either a deliberate \let\pdfmatrix\relax or an old pdfTeX (<1.40.0)
@egreg Same code is present but without the bug for later versions of pdfTeX
 
@JosephWright So that's why nobody found it before.
 
3:30 PM
@egreg Yup
@egreg There's a reason I've got the LaTeX3 team to set some slightly more taxing engine requirements! (We require pdfTeX >= 1.40.0 and I'm keen to move on the requirements for the other engines a bit, particularly LuaTeX)
 
@JosephWright I agree: there's no reason for supporting old distributions and getting mad for providing workarounds that often are even impossible.
 
@egreg Also, they don't tend to get tested, and then life gets tricky
 
@JosephWright And another wicket fell.
 
@egreg Since when? I have 161-7 on the BBC
 
@JosephWright This was at tea time
49 mins ago, by egreg
England: Yet to bat
India: 140-6 (55.0 overs)
Venue: Lord's
 
3:39 PM
@egreg Ah
 
@JosephWright I'm busy following the match. ;-)
 
@egreg and I've been out all afternoon, glad someone has been reporting on things:-)
 
4:25 PM
Got this on in the background while I do other stuff: at around 32 minutes they are talking about the new algorithm for detecting bad posts. One measure is whether there are any capital letters: Barbara may be in trouble :-)
 
@JosephWright Their algorithm should be useful as a self-test, that is, the algorithm correctly detects itself as a bad code. :)
 
@PauloCereda Apparently java as a tag on the main site is a bad sign :-)
 
@JosephWright Yep. :)
 
On the other hand, emacs is a good sign!
 
@JosephWright I'm gonna flag your comment as highly offensive. :)
 
4:37 PM
About 40 mins: they can't say the US swear words in one of the regexes, but are happy to use the UK ones!
 
@JosephWright Quite interesting to see them trying to solve a problem that doesn't have an algorithmic solution. :)
 
@PauloCereda Luckily it's all about SO so we are safe
 
@JosephWright Phew. :)
RIP Johnny Winter.
 
5:58 PM
@JosephWright Ulrich has written an email to me. Something for the weekend.
 
 
1 hour later…
7:06 PM
@HeikoOberdiek Cool: I also have a driver question to do then
 
7:36 PM
@DavidCarlisle Just three wickets after tea and 140+ runs by India. Tell your players to wake up!
 
@egreg Yes: sessions 1 and in particular 3 terrible for England
@egreg You are obviously an expert
 
@JosephWright I just can count. ;-) Terrible bowlers, aren't they?
 
@egreg Didn't have the best day, session 2 excepted
 
Guys, a silly question: is there an easy way to find out how many pages a document has in the \mainmatter part?
 
@JosephWright Typical English understatement. ;-)
@PauloCereda Looking at the last page number?
 
7:45 PM
@egreg Ouch. :)
 
@PauloCereda If you mean “programmatically”, then it's a different thing.
 
The only shortcoming is that I need that number before the main matter part. Probably write it in the .aux file?
@egreg Ah yes, that's what I meant. :) I thought there could be an epic packagethatcountspages for me. :)
 
@PauloCereda It depends on whether you have \backmatter or not.
 
@egreg So far, I don't have it. I'm typesetting an event proceedings. Quite interesting job, and I finally found a good use for arara. :)
I wonder who wrote that buggy software. :P
 
@PauloCereda Then zref-totpages should be your friend.
 
7:51 PM
@egreg ooh thank you!
@egreg Uh-oh, it gives me the absolute total. Let me see if there's another macro in there. :)
 
@PauloCereda Then zref-lastpage
 
Good evening...
 
@egreg Ouch part 2. :)
@ChristianHupfer Hello!
 
@ChristianHupfer Hey.
 
7:59 PM
@egreg Grazie! :)
 
@PauloCereda @Johannes_B: Hello
 
@ChristianHupfer I need to learn how to draw a Macaw properly. :-)
 
@Johannes_B: Is your little girl not satisfied with "Papagei" and "arara" any longer. Or is this a question for TeX.SX: Need to draw a Macaw properly -- How to do it, with TikZ
 
@ChristianHupfer Ohh, that sound more like something for @DavidCarlisle :-)
34
A: How can we draw a Christmas tree with decorations, using TikZ?

David Carlisle{\let~\catcode~`A0 AgdefAs.#1.{Acsname#1Aendcsname}AdefAq#1#2#3#4#5#6#7#8#9{%####################### AdefAy##1###1##3##4##5###3###2##8##9{AdefAw####1#####1####3####4####5#####3#####2####8####9{%####### AdefAz########1#########1########3########4########5#########3#########2########8########9{Aegr...

 
@Johannes_B :)
 
8:08 PM
@Johannes_B: Pah, that's all-a-days work for ... bicycle repair man :D
 
@ChristianHupfer @PauloCereda :-)
@ChristianHupfer @PauloCereda What do you think, do we need a canocical Q/A? meta.tex.stackexchange.com/questions/4530/…
 
@Johannes_B: I have seen that question already, but I am unsure at the moment. Something like a real Wiki would be nice
 
@ChristianHupfer I thought so as well, since there are things to consider. But splitting it into multiple Q/As seems not right.
 
8:25 PM
@Johannes_B: One problem is, that we have got many questions concerning issues with thesis-templates, often weirdly designed and basically no documentation on that. Basically none of them is to be found on a central web site such as CTAN, for example. It would be very difficult to keep track of them, if those scarce documentation should be handled as well.
 
@ChristianHupfer Templates are no packages, so i see no problem there.
@ChristianHupfer I like to refer to komascript.de/node/1691
 
@Johannes_B: Well, templates need documentation too ;-)
 
@ChristianHupfer But templates sooo often lack proper docs.
 
@Johannes_B: Wir drehen uns im Kreis :D
 
@ChristianHupfer That's your opinion :-) But why?
@ChristianHupfer Be fast, my battery is dying.
Ok, see you guys tomorrow
 
8:31 PM
@Johannes_B: You want package docs.... correct. I mentioned templates as well for documentation and stated, they need doc too, you wrote, that they lack doc....
Bye
 
9:10 PM
Is there an (expandible) command in LaTeX, that turns only the first letter of a word to an upcase character?
 
@ChristianHupfer expl3 can do this :-)
@ChristianHupfer \tl_expandable_uppercase:n (to be removed at some stage) or \tl_upper_case:n (probably to be renamed at some stage): all a bit experimental but quite doable
\tl_upper_case:n isn't in the release version just yet: going to CTAN this weekend. It can handle UTF-8 input with XeTeX/LuaTeX
Currently one of the 'areas of interest' for the team
 
@JosephWright: Thanks, I will wait for it...if it's experimental, that's ok, my code is too ;-)
@JosephWright: :n stands for the nth character to be 'upcased' ?(sorry for my bad English)
 
@ChristianHupfer *capitalized
:-)
 
@1010011010: Oh hello, how are you.... and thanks
 
@ChristianHupfer Arguments for expl3 functions are referred to by type: n is a braced set of tokens, but if you do \tl_upper_case:n <some tokens> with no braces then only the first will get grabbed
You probably want \tl_mixed_case:n, which upper cases the first char and lower cases the rest (actually, it uses the special 'title case' for the first char if there is one: see Unicode docs)
 
9:19 PM
@JosephWright: I will give it a try, although I have not worked with the new syntax so far
 
@ChristianHupfer You can just do something like \usepackage{expl3}\ExplSyntaxOn\cs_new_eq:NN\specialcasing\tl_mixed_case:n\Expl‌​SyntaxOff and use \specialcasing (or whatever name you like) if you want
We need to encourage @egreg to finish his expl3 book
 
@JosephWright he's too busy watching cricket
 
@DavidCarlisle Seems that way
 
@JosephWright: Thank you for the information, I will give you feedback ;-)
 
@ChristianHupfer Cool. As I said, \tl_mixed_case:n, etc. not in the CTAN release of expl3 just yet but will be probably on Saturday so in TeX Live hopefully by say Tuesday
Or you can grab the burning edge version, of course: github.com/latex3/svn-mirror (and texlua build.lua install)
I see I need to prod Will yet again about the mirroring
@egreg On the l3keys question, see comments below my answer. Thoughts welcome.
 
9:28 PM
@JosephWright: Yes, I can wait until the weekend. It's just a small feature for generating command names, not really important. I came across and wondered, if there is such a command in a package or in core LaTeX2e at all
 
@ChristianHupfer Doing it expandably and in a general sense is a bit tricky: we use e-TeX and \pdfstrcmp (post-e-TeX) to get there, so it's out-of-the-question for the 2e kernel.
 
@JosephWright I need to keep up with you changing things over my head. ;-)
 
@egreg Sorry about that :-)
@egreg Currently working on l3candidates: I'm wary of adding 'bits and pieces' for 'testing' then never discussing them, leaving us in an awkward place
 
@JosephWright: Well, I can imagine, that it is not an easy task. For me it would 'suffice' to get it working in a `\csname \CapitalizeTheFirstLetter{#1} \endcsname context.
 
@JosephWright I have \prop_get:Nn in several places.
 
9:38 PM
@ChristianHupfer l3 is of course a more systematic framework but... \defCapitalizeTheFirstLetter#1{\zz#1}\def\zz#1{\ifx a#1A\else\ifx b#1B\else#1\fi\fi}
 
@egreg Yes, I noticed it gets used quite a bit. Frank pointed out a while ago there was an issue with the name, but last time I raised it we sort-of ran out of steam in the discussion. This time I seem to have people's attention.
@egreg I've given you nearly 18 months to make a change
@ChristianHupfer Will work with \tl_mixed_case:n, though arguably 'upper/lower/title' case is for 'text' (this is one of the reasons this stuff is experimental!)
 
@DavidCarlisle: You are not suggesting to use \ifx for 26 characters? ;-)
 
@ChristianHupfer just be thankful it's not xetex :-) (and how do you think l3 does it expandably?
 
@DavidCarlisle Couldn't you use \ifcase here?
 
@DavidCarlisle: Someone like you wrote a very sophisticated expansion loop? ;-)
 
9:44 PM
@DavidCarlisle Have you read the code ;-)
 
@JosephWright yes ifcase might be a bit better that eoulf br \ifcase\numexpr`#1-`a\relaxA\or B \or C...
@JosephWright at times:-) but point remains that people often balk at a dozen lines of code but are happy to load half a million lines of tikz or expl3
 
@DavidCarlisle Certainly depends on your aims
@DavidCarlisle I was getting at the fact that the comparisons don't use \ifx (they are \pdfstrcmp-based)
 
@JosephWright final aim should certainly be to use l3 just as its better to use latex than use plain and roll your own all the time, but still latex3 code doesn't have any back door into the tex engine it is still just an awful lot of macro expansion (not that I'm telling you anything you don't know:-)
@JosephWright yes it's not really any different in principle is it (just a bit safer the ifx version I put above would go very wrong if anything other than character tokens was met
 
10:26 PM
Good night to everybody
 
10:51 PM
@DavidCarlisle: Your \MakeTextUppercase command from textcase is not expandable, is it?
 
@ChristianHupfer It's as unexpandable as possible. ;-) Good night.
 

« first day (1355 days earlier)      last day (3582 days later) »