« first day (2823 days earlier)      last day (2112 days later) » 

12:01 AM
@marmot The Brazilians (of Ipanema) seem to know everything about marmot cheese preferences:
 
@DavidCarlisle -- good news, i guess. where can i find out what was the reason for the problem? was it the result of a change in hyperref, or silly (but obscure) user error? i don't think the amsthm documentation even mentions hyperlinks. i'd probably rather avoid adding that, but suppose it should be considered.
 
@barbarabeeton don't know, the OP just closed, I was hoping he'd update the answer in the question here to say what happened..
 
@barbarabeeton I'm going to edit my blog posts down for TUGboat :)
 
Hello friends.
Unfortunately I was not able to attend TUG in RJ.
 
12:16 AM
@Sigur nor me:-)
 
I'll look for some videos to watch later.
I hope everything was right during the meeting.
What folders from my full TL18 installed should I copy to my local version to fix the error:
no UTF-8 mapping file for font encoding OML
I know that this is not the right way to deal with this, but I'd like to copy only the minimal to be able to compile a pdf with accented letters.
 
@Sigur there is no unicode map for that in the default distribution as far as i know, how did you get there?
 
@DavidCarlisle, sorry, but I am not able to answer you. When I run pdflatex from my system installed version (full tl) everything is OK.
Then, I did a minimal installation on a local folder and I am trying to compile the same minimal mwe, but using the local pdflatex.
So, I got those errors
I'm going to install the minimal again...
What I'd like to do is to obtain minimal files to share to friends so they can compile my mwe, without installing TL.
 
@Sigur I'm giving up for the day but off the top of my head I can't see how you get that error unless you explicitly force it with something weird like `\fontencoding{OML}\selectfont
@Sigur how are they getting tex if they are not installing tl, compiling from source?
 
This is the mwe
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage{tikz-tak}
\begin{document}áçãõó
%\input{current_cal}
\end{document}
 
12:30 AM
@Sigur -recorder option to pdftex should tell you all the files it used in your full setup so copy them to the minimal one
 
I create a program in Qt and this program calls pdflatex to compile this mwe.
So I'll share a texlive folder and .tex to them. So they can run my Qt program.
 
@Sigur ! LaTeX Error: File `tikz-tak.sty' not found.
 
I'm creating a tikz-tak package... lol I wish to share it with people from TEX.SE... may if Paulo helps me.
 
@Sigur well it's not much of a mwe:-) that's the only error you get, no erros about OML (the inputenc line isn't needed of course with a 2018 latex)
 
@DavidCarlisle, that is not the problem. You can comment it.
 
12:33 AM
@Sigur then it runs without error
@Sigur and pdflatex -recorder shows these files got used:
PWD /cygdrive/c/tmp
INPUT /usr/local/texlive/2018/texmf.cnf
INPUT /usr/local/texlive/2018/texmf-dist/web2c/texmf.cnf
INPUT /usr/local/texlive/2018/texmf-var/web2c/pdftex/pdflatex.fmt
INPUT aa769.tex
OUTPUT aa769.log
INPUT /home/davidc/texmf/tex/latex/base/report.cls
INPUT /home/davidc/texmf/tex/latex/base/report.cls
INPUT /home/davidc/texmf/tex/latex/base/size10.clo
INPUT /home/davidc/texmf/tex/latex/base/size10.clo
INPUT /home/davidc/texmf/tex/latex/base/inputenc.sty
INPUT /home/davidc/texmf/tex/latex/base/inputenc.sty
 
@DavidCarlisle, so sorry, please, wait a little. Maybe I paste something wrong. I'm going to install locally again
So, it means that I need only those files in my minimal distribution?
 
@Sigur yes if you have built a latex format (which needs other files of course)
 
OK. One minute, please.
 
@Sigur I don't know where you are but it's 1.30am here, I'm done for the day:-)
 
@DavidCarlisle, for sure. Sorry. I'm in Brazil.
9.40pm
 
 
3 hours later…
3:37 AM
@DavidCarlisle Well, a good proxy for normal is common. As in, the vast majority of times, vs a special case.
 
 
3 hours later…
6:28 AM
@UlrikeFischer Actually marmots prefer parmeggiano and pecorino. ;-)
 
 
2 hours later…
8:14 AM
@DavidCarlisle won't argue against tex.stackexchange.com/questions/442964/… I'll delete my comments to not advertise "misbehaviour" :)
 
@Skillmon no need, what you said was true, I just decided to be grumpy this morning:-)
 
@DavidCarlisle too late :) Though there are more examples of optional stuff not using [], e.g. with booktabs \cmidrule which takes the side bearings (probably not the correct term, the trim) as optional arguments in ()
@DavidCarlisle or stuff introduced by a syntax like >{...} which one could say is an optional argument delimited by >{ and }.
 
@Skillmon yes and closer to your suggestion beamer's <2> but really my initial point was that positional optional arguments don't work well after the first, and (I didn't say) better to switch to key=value if you want more) you can also modify the delimiters or like many latex commands have the optional arguments before and after a mandatory argument so it is clear which is which \usepackage[foo]{zzz}[2018-01-01] both optional arguments are independently optional
 
9:08 AM
Could I get some quick help?

I want to set a background. Currently I have this:
\usepackage[placement=top,hshift=.5\pagewidth,vshift=-5,scale=1,contents={\includegraphics[width=3cm]{connectingmedia_logo.png}}]{background}
But now I want to shift it 4cm to the left. So something like:
hshift=.5\pagewidth - 4cm
How would I do that?
I meant \paperwidth
Wow. It's literall hshift=.5\paperwidth - 4cm
Just me using the wrong dimension messed it up...
 
Does anyone know whether the manpage (synctex(5)) is the canonical reference for synctex file syntax? There seem to be quite some "features" which do not match the real output of TeX engines…
 
9:24 AM
@TeXnician or the source, egreg links to a tugboat article in a comment here:
130
Q: What exactly is SyncTeX?

franzI stumbled upon these SyncTeX files in my directories and wanted to know what they are for. I searched this site and the internet and I think I have some vague understanding of what it is but I'm still not very satisfied with my actual knowledge. I've found many questions about configuring SyncTe...

 
@DavidCarlisle Thanks, so I have to bite the bullet and check the source, because the tugboat article unfortunately lacks the syntax bit.
 
@TeXnician I didn't actually follow the link (didn't trust the person giving it:-)
 
@DavidCarlisle I expected that :)
 
 
1 hour later…
10:42 AM
What font available in pdfLaTeX would you recommend as an alternative to Calibri?
Or in other words which is most similar to Calibri?
And any reason calibri is not yet on ctan?
Found my answer. It's not free
Just preinstalled on Windows :/
Alright. Switching to XeLaTeX did the trick (should I use LuaLaTeX instead). Now I only need the correct version of
\pdfimageresolution=110
 
11:19 AM
@BrainStone I don't think I have ever needed to set that
@BrainStone whether you should use xetex or luatex is something only you can answer
 
11:54 AM
is it possibe to make sure that a text and the following image always stay on the same page?
 
12:07 PM
@BrainStone minipage them.
 
12:30 PM
@JosephWright -- thanks! (i haven't had a chance to read them all carefully yet, but from a quick scan, i was about to ask you if you'd do that. but i guess boris scooped me, and i'm glad you're willing.)
@DavidCarlisle -- whew! great relief! but that might conceivably come up here in book production, so it's nice to know how to tackle it. glad the reporter explained the cause.
 
1:07 PM
I want to thank everybody for being so kind in watching and also participating with us in Rio de Janeiro. In particular, my dear friends @yo', @JosephWright, @WillRobertson, @FrankMittelbach, @UlrikeFischer, @Mico.
I am deeply sorry for any issue and/or problem that arose during the event. I tried my best to be helpful, but I am a very limited person. For those who were uncomfortable, I sincerely apologise.
@JosephWright: WELCOME BACK!
 
@PauloCereda Schipol
 
@JosephWright ooh
@JosephWright: you could go to some duck store nearby :)
 
@PauloCereda If I'd had more like four hours, I would have headed out. But I have only two.
 
@JosephWright I see.
@UlrikeFischer: WELCOME BACK!
 
@PauloCereda we are in Frankfurt now, waiting for the train. We had a great time in Rio! We really loved our stay.
 
1:16 PM
@UlrikeFischer Cool
 
@UlrikeFischer Yay!
@UlrikeFischer you are a fantastic person! As well as your husband. :)
@JosephWright You too! And you are tall. :)
 
@PauloCereda I tend to think I'm a normal size, and that most other people are just short ;)
 
@JosephWright you are mean
@JosephWright: poor Will. :)
 
1:35 PM
@PauloCereda what were you expecting, a duck?
 
@DavidCarlisle yes /sob
 
I think there are some duck obsessed people here.
 
@FaheemMitha how come?
 
@FaheemMitha Maybe you should ask the people at psychology.SE to validate the duck obsession in this room ;)
 
@FaheemMitha I think it is actually only one, the others just join in for fun.
@TeXnician Sounds like a good idea.
 
1:59 PM
Jul 16 at 17:34, by David Carlisle
@Circumscribe in answer to your original question there is no reason other than @PauloCereda's infectious silliness (fortunately I am immune)
 
2:15 PM
@DavidCarlisle oh
 
Jan 12 '16 at 12:15, by David Carlisle
@PauloCereda finished your thesis?
 
2:29 PM
@DavidCarlisle oh no
 
@PauloCereda Read your mails? ;)
 
@TeXnician oh yes, I am about to reply them, sorry. :)
I had a bad time flying back home yesterday...
 
@PauloCereda No problem, was just curious…
@PauloCereda Why? Did you land next to the duck pond?
 
@TeXnician Nope. :) A huge delay. :)
 
@PauloCereda Oh, how ordinary :)
 
2:38 PM
@TeXnician :D
 
@PauloCereda you should have taken the bus
 
@DavidCarlisle It was my backup plan, yes.
@DavidCarlisle 8-hour shake!
 
@PauloCereda train?
 
@DavidCarlisle There are none. :(
 
@PauloCereda clearly you missed being part of the British empire, we stuck railroads everywhere:-)
 
2:41 PM
@DavidCarlisle I know. :)
 
@PauloCereda shame the ones we put here were all rubbish:-)
 
@DavidCarlisle :D
 
0
Q: LaTeX standard symbol macro

John webnerI am looking for a list of standard LaTeX macros which are symbols and available without any packages. Macros like: \LaTeX, \TeX, \slash, \textbackslash, \dots Is there a list for such macros?

@egreg Are you sure about the duplicate?
For me it seems more like a question about a list, not about identifying a symbol.
 
Hooray! Back in the heartland of efficiency! They needed more than an hour to hand over our baggage. And the train will be at least 25 minutes late. And most likely the air condition won‘t work.
 
@UlrikeFischer 25 minutes? That's quite good, is it a regional train?
 
2:57 PM
16 mins ago, by David Carlisle
@PauloCereda clearly you missed being part of the British empire, we stuck railroads everywhere:-)
 
@DavidCarlisle no ICE. But the good news were that due to the delay we were allowed to change the train and now got one that goes directly to our hone town.
 
@UlrikeFischer Mönchengladbach is famous in Springer. :)
 
@PauloCereda ??
 
@UlrikeFischer The vice-president also supports the team. :)
 
3:16 PM
@TeXnician The answers point to the comprehensive list
 
3:32 PM
@PauloCereda So @JosephWright is both fantastic and mean? Perphaps he is the Psammead.
@JosephWright Do you grant wishes?
 
3:46 PM
@egreg what do you get for texdoc ltxutil ?
 
3:59 PM
@egreg -- what answers? there are three comments, and all point elsewhere.
 
@barbarabeeton The most voted answer starts with “You can look things up in the Comprehensive LaTeX symbols list. It can usually be easily accessed with texdoc symbols or texdoc symbols-a4 (in MiKTeX the latter only).”
With a link
@DavidCarlisle A package by Arthur Ogawa
 
@egreg yes with "interesting " comments about me, but for me texdoc shows an all white pdf with a broken pdf marker in xpdf's header
 
@egreg -- while that is true, the first "symbol" requested is \LaTeX, and that appears nowhere in the comprehensive symbols list.
 
@barbarabeeton Not my fault, but that one appears in the official manual and all guides I know of.
 
@egreg -- \TeX doesn't appear in the comprehensive list either. i guess we just have to agree to disagree.
 
4:12 PM
@barbarabeeton \TeX and \LaTeX are folklore.
 
4:53 PM
Home, sweet home...
 
5:10 PM
@DavidCarlisle What's the output of texdoc -l ltxutil?
 
5:24 PM
$ texdoc -l ltxutil
 1 /usr/local/texlive/2018/texmf-dist/doc/latex/revtex4/ltxutil.pdf
Enter number of file to view, RET to view 1, anything else to skip:
@egreg hmm no embedded fonts
 
@DavidCarlisle It was created by pdfTeX14.h in 2001. I don't have any sense of the early development of pdfTeX. Maybe it just wasn't very good in those days?
 
@HaraldHanche-Olsen well it wouldn't be pdftex itself but the map file which would say to use standard fonts with no embedding (used to be very popular to keep files small) actually I'm surpeised xpdf doesn't have built in substitutions so that works still
 
@DavidCarlisle ah, I see
 
 
2 hours later…
7:16 PM
@DavidCarlisle WOW!
@DavidCarlisle But I can see it with xpdf:
> xpdf -v
xpdf version 4.00
Copyright 1996-2017 Glyph & Cog, LLC
 
7:34 PM
@egreg but do you have real fonts with those names installed?
 
@DavidCarlisle Probably so
 
xpdf version 4.00
Copyright 1996-2017 Glyph & Cog, LLC
@egreg maybe it's just me that can't read it so I don't see the comments about me:-)
 
@DavidCarlisle :-D
 
7:47 PM
@DavidCarlisle I don't feel like digging through the code of longtable, so I thought I might ask before searching on my own. In tabular I hook into \@@array for a start-of-array-hook, into \@arraycr and \@yargarraycr for an end-of-row-hook, and into \@xarraycr, \@xargarraycr and \@@array for a begin-of-row-hook. Are there similar macros in which I can hook in longtable (and in which it would be possible to fire something like \endfirsthead or \rowcolor)?
 
@Skillmon digging is easier if you use a spade rather than a sponge.
@Skillmon the *arraycr in longtable ismore or less just that of the underlying tabular so \rowcolor you can probably do in exactly the same way but \end(first)head is rather speciial it needs to save a box off the vertical list and store it for use so the timing is a bit delicate (and actually broken by design:-) so it depends what you want to hook...
 
8:13 PM
Hi there! I'm looking for a way to use TTF fonts with (pdf)latex. The main post in TeX.SE seems to be tex.stackexchange.com/questions/226/… but answers are 7 years old! online websites about the topic are also very old. It's almost as if this (a) is no longer an issue, or (b) the solution hasn't change (i.e. it hasn't got better/simpler). Any ideas?
 
@luchonacho Why would you think that's old? pdfTeX hasn't changed substantially in over 10 years :)
 
@PauloCereda Considering the topics of the conference you should have said "accessible" ;)
 
@TeXnician Indeed. :)
 
@PauloCereda the arara one I saw live :(
 
8:24 PM
@DavidCarlisle <3
 
@DavidCarlisle I don't understand that (well I got the literal translation and while technically true, I don't seem to get a reference here).
@PauloCereda great news!
 
@Skillmon sorry it was partly in reply to
@gvgramazio more than vim? That doesn't exist editor wise. — Skillmon 5 hours ago
@Skillmon the longtable sources look better in emacs (of course)
 
@DavidCarlisle I don't think so :)
 
@Skillmon they have been there for almost thirty years and feel at home
 
@DavidCarlisle I guess your packages would be better if wrote in VIM, as you could focus more on writing the code than on the clumsy key combinations to get your OS do what you want :)
 
8:30 PM
@Skillmon unfortunately I would have all that brilliant code, and still 30 years later no way to save it
 
@DavidCarlisle well once in a while you could pay me a flight and I could save them for you :)
 
@Skillmon I have to check what @PauloCereda is saying about tikz, back in a bit...
 
8:51 PM
@DavidCarlisle I fear the stuff I want to hack into longtable is not manageable :( I didn't tried yet, but it seems utopian to achieve it.
 
@Skillmon you could add a feature request in my longtable v5 github but progress there is painfully slow
 
9:07 PM
@DavidCarlisle feature request: Support everything that I want :) Doesn't sound good, does it? What I would need would perhaps be really hard to implement. Something like you only need to input the header once (without any captions, those would be added by my hooks) for the first head and the other heads (of course with different captions, but the same other rows) and don't even have to use \endfirsthead and \endhead as those would be inserted automatically as well. Stuff like that :)
@DavidCarlisle basically reimplement my fancy (and perhaps error prone, not much testing yet) method of inserting tables with automatically formatting head rows and stuff.
 
@Skillmon the v5 code would be a better place to start as v4 uses boxes for the head and foot which makes it hard (well, impossible) to dynamically vary the head and foot based on the table content
 
@DavidCarlisle Could you give me the link to your github? I indeed have a serious feature request.
@DavidCarlisle Does v5 not use boxes anymore for that? Would it still be possible to add verbatim content without the boxes?
 
@Skillmon current sketch allows two styles (I think: it's been some months since I looked at this) github.com/davidcarlisle/dpctex/tree/master/longtable
 
9:25 PM
@DavidCarlisle great, now I added my feature request, after that looked at htmlpreview.github.io/?https://raw.githubusercontent.com/… and found out that there \endfirstfoot is already listed :(
 
@Skillmon lots of things are listed there:-)
 
@DavidCarlisle, yesterday i mentioned my problems with tabularx. after many test i find the following. if i use landscape paper orientation (done by geometry package), all works fine until i define size of margins with geometry package and table has more than 23 columns.
 
@Zarko MWE...
 
\documentclass{article}
\usepackage{tabularx}
\usepackage[margin=20mm,
landscape]{geometry}

\begin{document}
\begin{tabularx}{\linewidth}{|*{24}{X|}}
\hline
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 &
11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20 & 21 & 22 & 23 & 24\\
\hline
\end{tabularx}
\end{document}
@DavidCarlisle, above code works if table has only 23 columns. or if you comment "margin=20mm".
 
yo'
@Zarko a4paper or letterpaper?
 
9:37 PM
@Zarko it runs without error as it is?
 
in my editor (winedt) i have declared that default paper size is a4
 
@Zarko that doesn't affect latex which defaults to us letter
 
@DavidCarlisle no errors, no warnings
 
@Zarko you get Overfull \hbox (10.00003pt too wide) in paragraph at lines 12--12 but that's nothing to do with the number of columns it's just too wide for the page
 
@DavidCarlisle, now i check log file. this warning is present if i use "margin=20mm" or not.
 
9:42 PM
@Zarko yes but it's nothing to do with 26 and not an error: if you increase the margin then there is less space for the table so the box is more over full
@Zarko you see the same here
\documentclass{article}

\usepackage[
%margin=20mm,
landscape]{geometry}

\begin{document}
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ%

\end{document}
it runs with no warnings but if you uncomment the margin setting you get a warning
@Zarko so as you see it's not really related to tabularx
 
@DavidCarlisle how did you copy that from Build Output? All the times I have to copy something there I do it by hand...
 
@manooooh I used this trackpad thing on my laptop to cut and paste it from the terminal where I'd run tex to here?
 
@Zarko Did you see this one?
5
Q: How to typeset tabularx with 34 columns? (Error message)

MostlyHarmlessI want/need to typeset a very large table with >30 columns, which I created with Excel2LaTeX. I don't get it to compile, it only works if I really use 20 columns, however when I insert the 21st one, it fails: \documentclass[11pt, a3paper, landscape]{scrartcl} \usepackage{tabularx} \begin{docume...

 
@egreg I'd completely forgotten about that, @zarko I assume you don't have an old (pre 2014) copy of tabularx?
 
@DavidCarlisle please see the image above
 
9:58 PM
@DavidCarlisle, no, i not remember. I will look that. i have recent miktex. i will check immediately.
 
@manooooh don't know which editor that is but the log file is just plain text you can open the log in the main editor window or in some other editor or simply echo it to a terminal window
 
@DavidCarlisle Yes I forgot the .txt file! Thank you
 
@manooooh I just simply typed pdflatex zarkos-test-file in a terminal window and copied the text from the console output so I never looked at the log at all (I don't usually run tex from inside an editor)
 
@DavidCarlisle Apparently the fix just makes narrow columns instead of raising an error.
 
@DavidCarlisle TeXnicCenter is an editor?
 
10:00 PM
@manooooh so I hear, I never used it.
 
@DavidCarlisle Maybe it's time to use l3fp
 
yo'
@DavidCarlisle you can even open the log file in the software whose name must not be said aloud... (and I don't mean vim)
 
@egreg waiting for @JosephWright to stop messing around re-implementing tikzducks and re-implement all the table code:-)
@yo' MS Word
 
@DavidCarlisle, from my list of used files follows, that my tabularx is v2.11 from 2106:
*File List*
article.cls 2014/09/29 v1.4h Standard LaTeX document class
size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
tabularx.sty 2016/02/03 v2.11b `tabularx' package (DPC)
array.sty 2018/04/30 v2.4h Tabular extension package (FMi)
geometry.sty 2018/04/16 v5.8 Page Geometry
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
ifpdf.sty 2017/03/15 v3.2 Provides the ifpdf switch
ifvtex.sty 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
 
@DavidCarlisle Wort is bad, don't say that word :)
 
10:02 PM
@Zarko yes so no error then just an overfull box warning? but that is just warning you that the content is bigger than the page
 
@DavidCarlisle, yes, i know, however resulted table is corrupted. hline is long as text width, but columns are squeezed to approximately half of it. this is my problem.
 
@Zarko really? I didn't look at the output, let me see...
 
@DavidCarlisle, plees look the result. sorry that i wasn't clear enough at beginning what is the problem
 
@Zarko oh yes well looks like you are getting a result that is just rounding error as @egerg says using l3fp would give more accurate arithmetic but it could probably be fixed I may look (although of course a tabularx in which all the columns are X is pretty pointless really as tex goes to a lot of work, using not that accurate arithmetic to calculate something that you know in advance
@Zarko (and I'll add @egreg for his amusement) if you add \tracingtabularx then you see
Package tabularx Warning: Target width: \linewidth  = 681.15898pt..

(tabularx)     Table Width    Column Width    X Columns
(tabularx)     16645.8154pt     681.15898pt      25
(tabularx) Don't exceed \maxdimen
(tabularx) Reached minimum width, backing up.
basically tx makes a guess of the column width, sees how wide the table is, then calculates how to fix its guess, in this case the first guess is bigger than \maxdimen so all tex's arithmetic is pretty hopeless and it gives up....
@Zarko probably can force it to scale the values before doing the arithmetic, let me see...
 
10:24 PM
@DavidCarlisle, but interestingly, only if i determine "margin=..." . interesting interaction.
 
\documentclass{article}
\usepackage{tabularx}
\usepackage[margin=20mm,
landscape]{geometry}


\makeatletter
\def\TX@endtabularx{%
   \expandafter\expandafter\expandafter
     \TX@find@endtabularxa\csname end\TX@\endcsname
     \endtabularx\TX@\endtabularx\TX@find@endtabularxa
  \expandafter\TX@newcol\expandafter{\tabularxcolumn{\TX@col@width}}%
  \let\verb\TX@verb
  \def\@elt##1{\global\value{##1}\the\value{##1}\relax}%
  \edef\TX@ckpt{\cl@@ckpt}%
  \let\@elt\relax
  \TX@old@table\maxdimen
  \TX@col@width.5\TX@target%<<<<< smaller initial guess for big table
@Zarko added .5 in one place....
 
@DavidCarlisle, it works!
 
@Zarko naturally, I'm not @egreg!
 
@DavidCarlisle, i hope that you will incorporate this fix to tabularx. from time to time i see question on site, where people ask for help at tables with 26 or more columns.
and of course, you are not @egreg :-) thank you very much for valuable help!
 
@Zarko as i say the number of columns is not that relevant, well only indirectly, the problem is that the combination of the table content font size and number of columns made a trial calculation be bigger than \maxdimen after which it basically gives up. It's not immediately clear how to fix the package, i'll think about it) at the point that I rescaled the trial by an arbitrary .5 tabularx doesn't know that it is about to fail...
 
yo'
10:35 PM
@Zarko this all is highly non-trivial, so the fix that @DavidCarlisle provides again has potential flaws
 
@yo' yes if the the scale factor .5 is changed to scale too much then the "initial guess" will be too small and tabularx will not find the right width (its algorithm only makes the table smaller each time) and if you do not scale enough then it will still end up being bigger than\maxdimen and fail in the same way.
 
@yo', i imagine, that this is not trivial. tex is not designed for calculations ... but i'm confident in David.
 
@yo' one easy for me cop-out solution would be to add a \renewcommand\txwackyscalefactor{.5} option (defaulting to 1) with documentation that says if you get this warning, try setting the scale factor to a different value and hope for some luck....
 
yo'
@DavidCarlisle of check whether \maxdimen/\numberofXcolumns is less of what you need, in that case issue a warning (that nobody will read anyway) and carry on with \maxdimen
 
10:51 PM
@yo' I don't know the number of columns at that point:-)
 
yo'
@DavidCarlisle so what do you use that makes it overflow \maxdimen?
@PauloCereda oh I sound so stupid :D
 
yo'
11:46 PM
@DavidCarlisle @JosephWright vv (I can't ping Frank, but he's in a plane just now probably anyway)
0
Q: Reliably detect space left on the last page

yo'I would like to reliably detect how much space is left on the last page of the document. Preferably, this should be accessible in a \AtEndDocument or similar hook, so that I can write this information to my own auxiliary file. Another option is if it gets automatically written in the standard .au...

 
@yo' the initial guess of the column width is the array target width, which is right if there is one column, but rather too much if there are 24, but you just need an initial guess that makes the table too wide but less than maxdimen
 
yo'
@DavidCarlisle and what's wrong with guessing \maxdimen?
 
@yo' no I guess the width of an X column, but if the resulting table width is bigger than maxdimen I can't do any sensible tex arithmetic on that width to iterate the trial
 
yo'
@DavidCarlisle yeah, sure, so as I thought, no solution other than getting away from TeX :-)
 
@yo' can't you use \pdfsavepos ?
 
yo'
11:50 PM
@DavidCarlisle and then check for figures, footnotes, xfootnotes, bigfootnotes and other stuff?
 
@yo' as @egreg said, i could use l3fp arithmetic rather than tex dimens...
 
yo'
@DavidCarlisle yep
 
@yo' don't use footnotes in your books, Don
2
 
yo'
@DavidCarlisle if I needed this for myself, but it's for a package, where I wanna be reasonably bullet-proof, and at least issue a warning/error if this happens...
 
@yo' I know all about extending packages for features I don't need myself:-)
 
yo'
11:52 PM
@DavidCarlisle indeed. Well, you can check the TUG video and see who suggested this (I hope it's there) (I'm actually not sure who it was)
 
@yo' I just watched @WillRobertson's talk :-)
 
yo'
@DavidCarlisle the mk one or the font one?
 
@yo' the last one (I saw the first on the live stream but I missed all of the last day for family reasons)
 
yo'
@DavidCarlisle yeah, those Sundays
 

« first day (2823 days earlier)      last day (2112 days later) »