« first day (1041 days earlier)      last day (3903 days later) » 

8:46 AM
Is there anyone who could give me a hand with a csquotes problem? I'm trying to make the automatic trailing punctuation feature working.
\documentclass[ngerman,british,american]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[autostyle=true,autopunct=true]{csquotes}
\begin{document}
  \textquote{Hi}, he said. I like \textquote{the Iliad}.\\
Expectation: \enquote{Hi,} he said. I like \enquote{the Iliad.}

\selectlanguage{british}
  \textquote{Hi}, he said. I like \textquote{the Iliad}.

\selectlanguage{ngerman}
  \textquote{Hallo}, sagte er. Ich mag \textquote{die Ilias}.
\end{document}
The american quotes do not move the punctuation inside the quotation marks.
 
 
2 hours later…
11:02 AM
@moewe Perhaps this helps you?
\documentclass[ngerman,british,american,a5paper]{article}% british,american

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[autostyle=true,autopunct=true]{csquotes}


\begin{document}
\textquote{Hi}, he said. I like \textquote[][.]{the Iliad}.\\
\textquote{Hi}, he said. I like \textquote{the Iliad}.\\
Expectation: \enquote{Hi,} he said. I like \enquote{the Iliad.}

\selectlanguage{british}% british
\textquote{Hi}, he said. I like \textquote{the Iliad}.

\selectlanguage{american}% american
 
I got my 200K swag package from StackExchange! No unicorns, though.
4
 
@egreg Yay!
 
@Kurt Thank you! It does what I want, but I interpreted the documentation (the scanning ahead part) as telling me that \textquote{the Iliad}. with american punctuation would scan ahead and become \textquote{the Iliad.}.
 
11:17 AM
@moewe See the last four textquotes (lines 35 to 38). You need the definitions from line 25 to 29. Then it should work as wanted ...
 
Ahhhhhh, I now fully understand the error of my ways. I thought \renewcommand{\mktextquote}[6]{#1#2#4#5#3#6} would be automatically executed by \selectlanguage{american} but that is not the case. Thank you!
 
@egreg is it same as 100k or a different selection?
 
@moewe You're welcome. Why didn't you ask this on the main site?
 
@Kurt I thought it was some trivial error I had made (like not reading the documentation properly). Do you think it is worth to be moved over there?
 
11:37 AM
@DavidCarlisle you just commented on a question of mine. What is "fill" glue? does it really have to be two el stretchable glue or just stretchable glue?
 
@PauloCereda How do I do filename globbing in arara? Here's my rule:
!config
# Gnuplot for arara with file replacement
# author: Andrew Stacey
# last edited by: Andrew Stacey
# requires arara 3.0+
identifier: gnuplot
name: GnuPlot
command: <arara> gnuplot @{options} @{getBasename(file)}.*.gnuplot
arguments:
- identifier: options
  flag: <arara> @{parameters.options}
tikz generates files with the name \jobname.<num>.gnuplot and I want to run gnuplot on them all. But I don't know (or want to know) all of the <num>s that it generates. So I want to glob them. Can I?
 
@moewe I just was wondering why you asked it here. Perhaps the question could show other users that there is such a function. But I think I would not use it. In German you should only write exactly what you citet. If the citation contains a dot okay, if not I would not migrate it into the citation. But I do not know the american or british rules for this ...
 
@Kurt The American style rules AFAIK normally require the punctuation be moved inside the quotation marks, that's why I thought \selectanguage{american} would also take care of that.
 
@DanielE.Shub needs to be two or three ll or you need to remove 1fil from the bottom, or redefine \newpage (I made an answer)
 
@moewe Ah, I see!
 
11:43 AM
@DanielE.Shub By fill glue I meant what you called two ell glue (as opposed to fil or fill)
@DanielE.Shub oh you meant 0pt plus .5\textheight. OK that makes more sense. I deleted my comment
 
@AndrewStacey I'm afraid this is not possible so far. :( arara relies on a process handler that is not keen on wildcards. You would have to provide the whole filename. And I know that for gnuplot this is surely impractical. I have a preliminar sketch on providing list manipulation for arara (or a new fork, since I'd break everything currently working), so you could say, findFiles(getBasename(file).concat(".*.gnuplot")) the expansion mechanism would notice that we were dealing with a list >>>
and the command would be replicated to every file found.
 
@PauloCereda Okay. For now, I'll put a shell wrapper around gnuplot and call that from arara. Still beats doing it on the command line.
 
@AndrewStacey Sounds like an excelent plan. :) I'll keep you informed on my attempts to support lists. :)
 
@DavidCarlisle thanks it would have taken me ages to track down the 1fil in \newpage
 
@DanielE.Shub If I get a MWE from a question if I don't add \tracingall I add \showoutput It's really one of my favourite tools:-)
 
12:01 PM
@DavidCarlisle any good references about how to effectively use \tracingall and \showout. While I am sure they are powerful in your hands in mine they are just overwhelming.
 
\tracingall can be scary (I tried to learn beamer by tracing some example found here but 10's of meagbytes of log is a bit much. `\showoutput` is much easier it is the same format as you get of overfull box warnings but it shows you the output of each page whether or not it is overfull. (neither is primitive \showoutput is \gdef\loggingoutput{\tracingoutput\@ne
\showboxbreadth\maxdimen\showboxdepth\maxdimen\errorstopmode}
\gdef\showoutput{\loggingoutput\showoverfull} TeXBook is what I used but probably texby topic has some free information (although I haven't checked)
 
12:58 PM
What do you think? Is this spam?
0
Q: Per line text gradient (ala beeline reader)

matt harrisonI've looked at the demo of Beeline reader and would like to test it out on a physical version of my books, which are done in LaTeX. I'm wondering if it would even be possible. Beeline reader takes online test a puts a slight gradient on the letters for a single line of text. On the next line it...

I think it is more advertising the named reader ...
 
@Kurt Watch @DavidCarlisle counterattack with picture mode. :)
 
1:30 PM
@Kurt No looks like a straight question to me. I think "don't do that" is the answer, but that's another matter:-)
 
@JosephWright: end of the conference? :)
 
@Kurt Probably not too hard in luatex if you know what you are doing (not me:-) hard to get it right in classic tex without messing up ligature or hyphenation with the colour changing every letter
 
@PauloCereda Not quite, but this session is not so much my area
 
@JosephWright ooh. :)
 
2:01 PM
@PauloCereda @david thanks for the response!
 
@Kurt Me? I did nothing. :)
 
@PauloCereda :-)
 
@PauloCereda typical
 
@DavidCarlisle Hey!
 
@PauloCereda ? :-)
 
2:06 PM
@DavidCarlisle I'm a good person... sometimes. :)
 
2:49 PM
@PauloCereda we'd never noticed, but I believe you.
 
3:00 PM
@PauloCereda Will you watch Italy's match tonight? (Well, afternoon for you.)
 
 
1 hour later…
4:15 PM
@PauloCereda @Kurt Now I have a badge, I'm not limited to picture mode....
0
A: Per line text gradient (ala beeline reader)

David Carlislewith thanks to How to put color gradient to "Desired Text Only" \documentclass{article} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{fadings,patterns} \begin{document} \newcommand\tikzsection[1]{% \begin{tikzfadingfrompicture}[name=tikzsection] \node [text=white] {#1}; \en...

 
@DavidCarlisle well done, congratulations!
 
4:43 PM
@Kurt It's a good job there was a link to how to make a gradient already in the automatic related question links over on the right:-)
 
Why does the following MWE:
\documentclass{article}
\usepackage[english]{babel}
\begin{document}
\section{A section}
\end{document}
leave me with an error:
! Undefined control sequence.
\bbl@set@language ...ge {\languagename }}\bbl@for
                                                  \bbl@tempa \BabelContentsF...
l.3 \begin{document}
 
@DavidCarlisle I did it only for you ;-)
 
I've been receiving this \bbl@for error for some time now. However, since I don't use babel at all, I don't know what this means.
 
@Werner no error here
 
Compiled with pdflatex?
So what's up with that then?
 
4:47 PM
 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
   babel.sty    2013/05/16 v3.9f The Babel package
 english.ldf    2012/08/20 v3.3p English support from the babel system
 ***********
 
I guess I'll include \listfiles.
 
@Werner yes with \listfiles as above
 
Oh my...
 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
   babel.sty    1997/01/23 v3.6h The Babel package
 english.ldf    2012/08/20 v3.3p English support from the babel system
 ***********
Look at that old beast in there..
 
@Werner so out of date, you should be all modern like me!
 
Why did tlmgr not update that puppy?
Only 15 years old.
 
4:49 PM
@Werner check the path, did it come from your tL tree or a local one
 
@DavidCarlisle Yes:
c:/texlive/2013/texmf-dist/tex/latex/babel/babel.sty
I'll do a --force install of babel.
 
@Werner something went wrong with your update
 
Show that 15+ year old .sty who's it's daddy.
 
@Werner Johannes:-)
 
@DavidCarlisle Exactly.
 
4:51 PM
@Werner (I don't think I've seen Johannes since about then)
 
@egreg What did you order?
 
5:04 PM
....uuhmmmm... how do remove babel and re-install it using tlmgr? Anybody know?
 
@Werner it should just work... Is your mirror incorrect switch to a different one?
 
Great, chatroom tags me everywhere @for comes up :)
 
@DavidCarlisle I am apparently in need of a computer restart...
 
5:20 PM
@Werner I got a laptop bag and a mug
 
@egreg Does the swag upgrade from 100K to 200K? ;)
 
@Werner I got nothing for 100K :(
 
@egreg Because you didn't want anything or didn't care? Or why?
 
I answered their mail, but got no response. It was in the period they were closing the store, I guess
 
@egreg Too bad. I picked up a hoodie and a sweater. I think next time I'll go for a hoodie that's a tad larger. You never know about the sizes for clothing.
 
5:26 PM
@Werner Or you fill up the previous size. ;-)
 
@egreg Really?!... :D
 
5:42 PM
@DavidCarlisle Hmmm, a restart, then a regular tlmgr update, then a tlmgr remove babel --force --no-depends, then a tlmgr install babel and it re-installed v3.6h from 1997...
How could I switch to a different repository and check whether something better is out there?
 
6:00 PM
@DavidCarlisle Hmmmm, it was my bad (probably as expected). Duplicate babel.sty with the older one loaded causing the problem. I'm fixing it now.
 
6:23 PM
@DavidCarlisle Not any more
 
7:05 PM
Quiet today: everyone getting ready for tomorrow's work on the unanswered list?
 
@JosephWright Everybody watching soccer.
 
@egreg Really? Something good on?
 
@JosephWright Italy-Bulgaria, for instance. ;-)
 
@SamWhited you mean, \MakeUppercase itself?
 
@SamWhited Maybe \MakeUppercase#1 without braces.
@SamWhited But this will definitely not work if the first letter bears accents
 
7:23 PM
@SamWhited Example?
 
Goal of Italy!
 
@egreg To look really, really, good?
@egreg I suspect 'Goal for Italy' :-)
 
@JosephWright Whatever. :)
 
@JosephWright The goal of Italy is to make people shout: "Goal for Italy!" :D
 
@SamWhited Well your \@gobbletwo will absorb \unskip and \
@SamWhited You'll do that if you expand \cc@thedir
 
7:29 PM
@Werner I had that problem, I got the jacket but it is a "close fit" :-)
 
@SamWhited I don't really get the optional argument, but \expandafter\expandafter\expandafter\MakeUppercase\@gobbletwo seems to be what you want
 
@JosephWright yep, the rule of 2^n-1 \expandafters ;)
 
@JosephWright not now but @werner had a 1997 vintage babel:-)
 
@SamWhited each expandafter eats one expandafter if it finds it ;) (in some sense. You can check it's correct with paper and pen of course...
 
@SamWhited Almost always as @tohecz says you want 2^n-1 \expandafters
@SamWhited \expandafter jumps exactly one token, and is then 'used up'
@DavidCarlisle Oh yes, certainly
 
7:32 PM
@SamWhited I still can't make things like "expand the first argument, then skip the second one, expand the third and fourth ones, feed them to the second one, and last expand the command itself" ;)
 
@tohecz That's what expl3 is for
 
@JosephWright yep I know :) but expl3 is a foreign world for me yet. YET.
 
@DavidCarlisle :)
@DavidCarlisle I've showed Mr Braam's new daddy.
 
@tohecz vvv
SamWhited I still can't make things like "expand the first argument, then skip the second one, expand the third and fourth ones, feed them to the second one, and last expand the command itself" ;)

\def\a{AA}
\def\b#1#2#3{\toks0{[#1][#2][#3]}\message{^^J^^J\the\toks0^^J^^J}}
\def\c{CC}
\def\d{DD}
\def\foo#1{\expandafter\xfoo\expandafter{#1}}
\def\xfoo#1#2#3{\expandafter\xxfoo\expandafter{#3}{#1}{#2}}
\def\xxfoo#1#2#3#4{\expandafter\xxxfoo\expandafter{#4}{#1}{#2}{#3}}
\def\xxxfoo#1#2#3#4{#4{#3}{#2}{#1}}
 
But you knew that:-)
(@DavidCarlisle Did you write l3expan?)
 
7:47 PM
@JosephWright like expl3 it's expandable given the fixed argument shuffling helpers it doesn't do any def with teh actual arguments
 
@DavidCarlisle Ah, sorry missed that
 
@JosephWright Frank's had versions since forever but I wrote some bits of some version, not sure of current state:-)
 
@DavidCarlisle The v/V stuff is Morten's (that I know), beyond that l3expan is little changed since I joined the team, so I guess you/Frank/...
 
@Werner despite @JosephWright hurtful comment that it's not expandable that's basically exactly what expl3 expansion does, shuffles the arguments around to get the one under consideration to the front then expands it one or more time then shuffles them back
 
@DavidCarlisle Comment removed :-)
 
7:52 PM
@JosephWright such power (or were you within the time given to mortals to edit?)
 
@DavidCarlisle No idea: doesn't worry me at all :-)
 
@DavidCarlisle @JosephWright I'm truly lost here...
...I didn't receive a notification, so I'm fully unaware of rudeness.
 
@DavidCarlisle I've been a mod on the site since we've had mods, so I've never really been affected by some of the 'normal' restrictions
 
@Werner Joseph said my code wasn't expandable (I suppose the number of people who'd take that as "hurtful" is limited:-)
 
@DavidCarlisle :-)
@DavidCarlisle Bruno certainly would: he's very keen on mind-bending expandable code
Speaking of which, must somehow convince him to finish l3fp
 
7:55 PM
@JosephWright so was I once (but I grew up at some point)
 
@DavidCarlisle You didn't write an FPU as well, did you?
 
@JosephWright no:-)
@JosephWright but I did write an xml parser and namespace processor, which is clearly more sensible.
 
@DavidCarlisle Expandable?
@DavidCarlisle I don't think I know the namespace processor
 
@JosephWright no:-)
@JosephWright xml namespace while parsing
 
@DavidCarlisle Ah, I misread that as two separate things
 
8:38 PM
Final: Italy 1 : Bulgaria 0
 
@egreg Oh my, I lost the game! :(
 
@PauloCereda You didn't lose much. Not a good game by Italy.
 
9:31 PM
@JosephWright Can you have a look at my answer here?
0
Q: Math-mode inception: creating a list environment for individually referenced equations

Sean AllredI'm trying to create a list-like environment properties that could be used as such: \begin{properties} \item[Lemonade Rule] \forall \text{lemons} \exists \text{lemonade} \item a^2 + b^2 = c^2 \item[identity] \forall \end{properties} The idea is to redefine \item local to the properties e...

 
@egreg Was just reading it
 
Probably there are also other errors; is my understanding about \IfBooleanTF correct?
 
@egreg Broadly: the situation 'buried' inside code is I think still open in some ways
@egreg At present I'd certainly favour keeping it at the interface level
 
10:20 PM
hey doing a tex document again (not an MWE from here:-) (not really that new I have to admit, since I started it in 1998....
£par £par £end{minipage}£end{lrbox}£begin{center}£fboxsep=5pt £fbox{£box0}£end{center}£par£medskip£par
The £strc[0.8em]{ci} element can contain
£strc[2.4em]{mglyph} elements to refer to characters not currently available in Unicode, or a
 
10:52 PM
@DavidCarlisle Thanks for the fake downvote. Maybe I'll get some sympathy votes in return (since I didn't actually blame longtable). :)
 
11:47 PM
@AlanMunn well it wasn't all a lie, I did vote:-)
 

« first day (1041 days earlier)      last day (3903 days later) »