« first day (3355 days earlier)      last day (1571 days later) » 

4:41 AM
I remember that I can use \ifcat to check if something is a macro. Can somebody please remind me how to do that correctly?
 
 
3 hours later…
7:47 AM
@Diaa you discarded the baselineskip setting before you used it you need a blank line before the endgroup, also you should not have the final \\ but setting a paragraph of rules isn't the most natural thing, why not use picture mode or even tikz (since you are loading pgf anyway)
@HenriMenke well not if it's a macro but if it is a csname not \let to a character: \ifcat\relax\noexpand#1 as all csname tokens that are not implicit characters are equal to \if and \ifcat
 
 
1 hour later…
9:06 AM
@DavidCarlisle Thanks!
 
9:17 AM
@JosephWright I got a bit lost in the l3-branches. What happened with the l3text branch? Is now everything in text-purify?
 
@UlrikeFischer I removed l3text, reworked a few ideas and put them into text-case + text-purify: at the moment, the pull request is only about the case-changing stuff
 
@JosephWright I don't think that I will have really the time to check the code this week, but I will build a branch current master + text-purify and use it.
 
@UlrikeFischer Cool
@UlrikeFischer The case changing code is largely the same as l3text, which is pretty similar to the current release stuff, jsut with better naming, the ability to change just the first char, and the Greek stuff
 
9:33 AM
Actually, I am printing a lot of rules over multiple pages as a space for answers. So, I am not sure if tikz will get the job done that easy way. For the additional \\ at the end of last foreach iteration, I think it can be fixed by \vspace{-\baselineskip} after the loop.

If you have an easier way to do so, I would be grateful to know it.

Thanks for pointing the missing blank line out for me.
 
yo'
@Diaa \gdef\zzz{\gdef\zzz{\\}} \for \x in {a,b,c}{\zzz \x}
(not tested, I'm typing from my phone)
(also be careful about thr macro name as \zzz has to be global to make this work)
 
@Diaa better not to add it (or use \ instead of \\ in all cases (as it makes no difference here) or more efficiently use \par rather than \\ as that avoids setting all the rules in one long horizontal list first)
 
quack
@yo' ooh zzz
 
@PauloCereda Dinner
 
@DavidCarlisle oh no
 
9:40 AM
@PauloCereda standard naming convention
 
@DavidCarlisle :)
 
@yo' @yo' I am sorry but I don't get it why I need to define a global macro for printing multiple rules.
 
@Diaa because you were using pgf's for loop which processes each item in a local group so if you want to set a flag after the first item so you only put \\ in front of items other than teh first then you need to escape that group. Other loop macros don't have that issue (or as I say you could avoid using \\ in this case)
 
yo'
@Diaa ask pgffor creators. The instances of the for cycle are grouped, so you cannot easily communicate between them locally.
 
@Diaa backing up with a negative space at the end doesn't really work, it is hard to avoid edge effects if the last rule happens to fall at the end of the page you don't want a page break between the spurious line and the backspace
 
9:50 AM
So, is this what you mean?

\documentclass[12pt,a4paper]{exam}
\usepackage{pgfplots,blindtext}
\begin{document}

\blindtext
\vspace{\baselineskip}

\begingroup

\setlength{\baselineskip}{1mm}
\foreach \i in {1,...,50} {\noindent\rule{\linewidth}{0.2pt}\par}

\endgroup

\vspace{\baselineskip}
\blindtext

\end{document}
 
@Diaa something like that (1mm is very close lines though for answers??)
@Diaa you might want to add \setlength{\parskip}{0pt} inside your group as well, to stop it stretching if you have flushbottom
 
10:06 AM
@DavidCarlisle It is a dummy number :)
 
@Diaa bad choice though: if you'd made it much smaller you would have hit \lineskiplimit and the layout would have changed
 
10:20 AM
I'm trying to have a template, which includes JPG files in a small LaTeX file using \includegraphics, with no other options.
However, the bottom of the JPEG file is getting lopped off.
Are there some approaches I can take to obtain best results for an arbitrary JPEG file?
 
@FaheemMitha then you did something wrong or the size data in the jpeg file is wrong (not entirely uncommon)
 
Perhaps some heuristics using measurements from the JPEG file?
@DavidCarlisle The file is very simple. Are you saying \includegraphics automatically uses information from the JPEG file?
 
@FaheemMitha yes of course how else would it know how much space to take up on teh page.
 
@DavidCarlisle Oh.
I don't think I did anything wrong. The LaTeX file is very simple.
 
@FaheemMitha the details depend on which back end driver you are using, but if you can go \includegraphics{foo.jpg} it is reading the size data from the jpeg file
 
10:24 AM
@DavidCarlisle Yes, that's all I did.
\documentclass{scrartcl}
\usepackage{graphicx}
\usepackage{grffile}
\begin{document}
\includegraphics{foo.jpg}
\end{document}
 
@FaheemMitha users always think that, so that isn't saying very much.
 
@DavidCarlisle :)
 
@FaheemMitha don't use the grffile package in a current latex, it is obsolete.
 
@FaheemMitha don't use grffile (actually the current version of the package is literally empty so it is harmless)
 
@DavidCarlisle so slow
 
10:25 AM
Don't use the... oh
:D
 
@UlrikeFischer but so much more informative
 
@UlrikeFischer I read snow :)
 
@FaheemMitha well naturally that will clip to the page size so if the jpg doesn't fit it will get clipped (and latex will warn you about over full boxes)
 
@UlrikeFischer Oh. What should I use instead? If I don't use it, then files like foo.bar.jpg give me errors. Unknown suffix etc.
@DavidCarlisle Hmm. What are my options for automatic rescaling?
 
@FaheemMitha not in a current latex release they wont
 
10:27 AM
@DavidCarlisle It happened to me just today. With TeX Live 2019.
In fact, that's why I added the line. Then the error went away.
 
@FaheemMitha [height=.8\textheight,width=\textwidth,keepaspectration]` and a \noindent before the `\includegraphics?
 
@DavidCarlisle keepaspectratio (typo)
:)
 
@FaheemMitha then you are not up to date, teh texlive 2019 grffile is, in total:
 
@DavidCarlisle Oh. Would that generally fit, then? Oh, right - keep the aspect ratio. An important detail, that.
 
\PackageInfo{grffile}{This package is an empty stub for compatibility}
\DeclareOption*{}
\ProcessOptions
\RequirePackage{graphicx}
@FaheemMitha so it will not change any aspect of file inclusion
 
10:29 AM
@DavidCarlisle Ok, checking.
 
@FaheemMitha then your system is not current.
 
@UlrikeFischer so slow
 
@DavidCarlisle ooh more snow
@DavidCarlisle also, formatting
 
@UlrikeFischer Yes, David just said that. Did it change during or after TeX Live 2019, then? So really recently?
I was about to upgrade to the December snapshot of the Debian packages. Is that current enough?
 
@PauloCereda which reminds me...
Счастливого Рождества
3
@FaheemMitha possibly, I have no idea when debian update.
 
10:32 AM
@DavidCarlisle оох сеасон греетингс
Gotta love this transliteration thingy :)
 
@DavidCarlisle At any rate, was this a recent change?
 
@DavidCarlisle to be honest, I was expecting "dinner" or something along these lines. It was quite surprising. :)
 
grffile is definitely not empty here. Actually, there are two grffile.stys here.
 
@FaheemMitha relatively (2019-11-11) but before that grffile hadn't worked at all for about a year
@PauloCereda you mean you were not already celebrating Christmas?
 
@DavidCarlisle Hmm. Ok. I was planning to update anyway. I think I've already built the debs.
 
10:34 AM
@DavidCarlisle OH TODAY IS CHRISTMAS TO ORTHODOX CHRISTIANS
 
@FaheemMitha two?
 
@PauloCereda Maybe it's dinner in Russian?
 
@FaheemMitha No, see above.
Julian calendar.
 
texlive-latex-recommended: /usr/share/texlive/texmf-dist/tex/latex/lwarp/lwarp-grffile.sty
texlive-latex-base: /usr/share/texlive/texmf-dist/tex/latex/oberdiek/grffile.sty
 
@DavidCarlisle you sir are a true English treasure.
 
10:36 AM
@FaheemMitha oh that's not two grffile.sty that's one grffile.sty and another file that has some shared letters in its name
 
@PauloCereda Along with Stephen Fry and David Attenborough, you mean?
 
@FaheemMitha No, David is way more than that. :)
 
@DavidCarlisle Oh, pardon me. It looked sufficiently grffiley to me.
The version I have is:
%% Project: grffile
%% Version: 2017/06/30 v1.18
@PauloCereda Way more than what?
 
@FaheemMitha Yes, more than what.
 
@PauloCereda I cannot parse that. I am parseless.
 
10:45 AM
@PauloCereda it helps to be fairly flexible in religious affiliation, to pick up holidays.
 
@DavidCarlisle that's naughty. :)
 
@FaheemMitha no more than graphicx.sty and graphics.sty share the letters graph
@PauloCereda yes well as you are catholic and more or less every day is a saints day anyway, you wouldn't gain so much.
 
@DavidCarlisle ooh that's true :)
@DavidCarlisle speaking of Englishmen, I have one or two books from GK Chesterton to read. :)
@DavidCarlisle My dad tells an anecdote of a very lazy man in the city who used to wake up every day and take a look at a calendar which had a saint dedicated to each and every day. He would consider even the most obscure reference as relevant enough to save the day. :)
 
 
2 hours later…
12:38 PM
ooh more stars (@HenriMenke)
 
 
2 hours later…
3:04 PM
@DavidCarlisle Just a quick update on pgfplots. I contacted Christian: Maybe there is still hope, that he will work on pgfplots again :)
 
@Dr.ManuelKuehner yes same as me and longtable, one update every 20 years gives people hope that updates are still on the way.....
 
@DavidCarlisle :)
 
@DavidCarlisle I really should make a pull request out of my bug report ...
 
@DavidCarlisle And you are reachable on this site for your fanbase, I mean userbase.
@DavidCarlisle Going offline again :). Bye.
 
@UlrikeFischer you have write access to latex2e/required/tools:-)
 
3:24 PM
@Dr.ManuelKuehner Yaya
 
3:38 PM
@JosephWright ooh the French football player :)
 
@UlrikeFischer I suspect this translates to: "how to I cope with Ulrike messing with the oberdiek bundle and moving packages around?"
0
Q: Install all missing packages under MiKTeX

José Carlos SantosWhen I install MiKTeX on a computer, I always choose the option of installing all packages. Of course, as time goes by, new packages appear on CTAN. Is there any way of telling MiKTeX to install all missing packages? It seems to be a logical request coming from someone who chose to install all pa...

 
@DavidCarlisle by switching to a fuill TeXLive installation?
 
3:53 PM
@daleif must admit that's always been my approach
 
4:47 PM
 
yo'
@PauloCereda haha, our river has three syllables, one of which does not contain a vowel :)
 
@yo' oooooh
 
@PauloCereda you'd be really stuck without vowels
 
@DavidCarlisle oh no
 
@PauloCereda h n
 
5:02 PM
@DavidCarlisle ooh czech skills
 
yo'
@PauloCereda <3
 
@yo' <3
@DavidCarlisle ooh cricket
 
yo'
@PauloCereda crckt
 
@yo' ooh more czech skills
 
5:40 PM
@yo' -- Add another "t", and that would trigger a song that was nearly an anthem of my teenage years. (It also, with new words, became the theme song of my college freshman dorm. This messing with vowels can have dangerous side effects.)
 
yo'
@barbarabeeton ndd t cn
 
5:54 PM
Hello everyone,

For this document https://pastebin.com/uCyBir0i , how can I make the output vertically centered on the empty page?

I don't understand why it is shifted upwards?
 
@Diaa Why the \rotatebox?
 
@egreg It was in the original answer from which I made this one.
 
@Diaa Here it is. Note the settings to geometry
%tex.stackexchange.com/a/356984/2288

\documentclass{article}

\usepackage{pgfplots}
\usepackage{siunitx}

\usepackage[
a4paper, margin = 0mm , includeheadfoot,
]{geometry}

% tex.stackexchange.com/a/15002/100384
\newcommand*{\getlength}[2]{%
   % Convert to `cm` and round to two fractional digits:
   \pgfmathsetmacro#1{round(0.0351459804*#2)}%
}

\begin{document}
\pagestyle{empty}

\centering

\vspace*{\fill}

    \begin{tikzpicture}
        % a factor for measures, since pfplots produces slightly bigger images than defined
 
@egreg Many thanks
 
 
2 hours later…
7:44 PM
@DavidCarlisle ^^
hmmmmm
 
 
2 hours later…
9:15 PM
! LaTeX Error: File `ltxcmds.sty' not found.
Why is this happening? I installed ltxcmds in the setup script.
 
@HenriMenke tlmgr itself needs to be updated.
@HenriMenke You need to have the tlmgr update --self line in the script reasonably early
 
10:02 PM
@HenriMenke as Joseph said...
@PauloCereda I'm not mean
 
@DavidCarlisle <3
 
Dec 25 '19 at 13:28, by Ulrike Fischer
@DavidCarlisle You are not mean
I knew if would be handy ...
 
@JosephWright @DavidCarlisle Cheers, mate!
 
10:20 PM
@HenriMenke we got hit by that earlier in the latex travis setup:-)
 

« first day (3355 days earlier)      last day (1571 days later) »