« first day (1660 days earlier)      last day (3266 days later) » 

7:33 AM
@JosephWright Would you please add \dim_to_decimal_in_sp:n? After all it's already there for \dim_ratio:nn and returns an integer. In some cases it might be useful.
 
7:43 AM
@egreg We already have the general \dim_to_decimal_in_unit:nn
 
7:54 AM
@JosephWright It doesn't work with sp:
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\dim_to_decimal_in_unit:nn { 1bp } { 1sp }
\ExplSyntaxOff
\stop
! Arithmetic overflow.
\dim_to_decimal:n ..._eval:w (#1)\__dim_eval_end:

l.5 \dim_to_decimal_in_unit:nn { 1bp } { 1sp }
@JosephWright At least it should be added to the doc that sp can't be used. I'm sure you guess why it doesn't work. ;-)
 
8:07 AM
@egreg You can go down as far as about 10sp :-) I'll add a note that the code is limited by e-TeX's ranges for expressions and give a suitable example
@egreg I don't think there's a good way to implement \dim_to_decimal_in_sp:n apart from going via the FPU, and that rather misses the point of this code (it's really for relatively fast lower-level operations)
 
8:35 AM
@JosephWright couldn't it just do \number\dimexpr#1\relax ?
 
@DavidCarlisle Yes but how does that fit in with the general \dim_to_decimal_in_unit:nn?
 
@JosephWright it doesn't but you could define \dim_to_decimal_in_sp:n anyway directly so it works rather than gives arithmetic error.
 
@DavidCarlisle Hmm, I notice we already have a problem as \dim_to_decimal_in_bp:n doesn't give the same results as \dim_to_decimal_in_unit:nn { <value> } { 1bp }!
 
@JosephWright isn't it defined as that? I could look at the code I suppose..
 
@DavidCarlisle No, the shortcut version has a baked-in ratio
 
8:41 AM
@JosephWright ah so doing same more radically for sp would fit the general scheme then:-)
 
@DavidCarlisle I guess
@DavidCarlisle I'll do that later on, I suppose, and update the notes again
 
@egreg causing work again
 
@DavidCarlisle Yes, that's the correct way.
 
9:08 AM
\documentclass{article}
\usepackage{expl3}

\begin{document}

\ExplSyntaxOn
\dim_to_decimal_in_bp:n { 1bp }\par

\dim_to_decimal_in_unit:nn { 1bp } { 1bp }\par

\dim_to_decimal_in_bp:n { 10bp }\par

\dim_to_decimal_in_unit:nn { 10bp } { 1bp }\par

\dim_to_decimal_in_bp:n { 100bp }\par

\dim_to_decimal_in_unit:nn { 100bp } { 1bp }\par

\dim_to_decimal_in_bp:n { 1000bp }\par

\dim_to_decimal_in_unit:nn { 1000bp } { 1bp }\par

\end{document}
@JosephWright :) ^^^
 
@egreg Indeed
@egreg We only added \dim_to_decimal_in_bp:n in the first place as it's needed for the drivers
 
@DavidCarlisle Thought about what you said, I still don't see it happen. I'll just point a question:-)
 
@egreg I'll add \dim_to_decimal_in_sp:n and a note saying that the generic function may give different results to the dedicated ones. Will that cover it for you?
 
9:30 AM
@1010011010 probably you should limit your question to a specific construct and a few lines of code:-)
 
9:41 AM
@DavidCarlisle Yes, boss.
 
@1010011010 only a suggestion:-)
 
@JosephWright Good: if one needs better accuracy, the fp module comes to the rescue. The conversion to sp is needed at least for consistency.
 
10:11 AM
Heavens, I am very sick today. :(
 
@barbarabeeton The colleague in Turin has promised to remove the item you know from his web page.
 
10:27 AM
@PauloCereda hope you're feeling better soon.
 
@DavidCarlisle Thanks. :) I need some soup. :)
 
@PauloCereda go for a quiet swim
 
@DavidCarlisle The water is cold brrr :)
 
@PauloCereda call yourself a duck?
 
@DavidCarlisle That's so mean.
:)
 
10:35 AM
I wonder if @egreg can answer this... tex.stackexchange.com/questions/245513/…
 
11:27 AM
@DavidCarlisle I stole his thunder. :P
 
@Alenanno Italians. :P
@DavidCarlisle: ^^
 
hides from egreg
 
@Alenanno Not surprisingly since he'd obviously forgotten how to use the package unless the OP gave him a MWE to get started.
 
@DavidCarlisle Not sure what you mean, forgotten unless?
He'd remember seeing a MWE?
 
@Alenanno You could add that there's an arara directive that does everything in just one step.
 
11:34 AM
@Alenanno @egreg's comment to the user asked for a MWE, I usually ask for one of those for packages that I have no idea how to generate a test case (any tikz question for example)
 
@egreg One thing. I did those passages, and got the result. But when I pasted another file in the old "test", and recompiled it (without doing the 3 passages) I got the new page.
I changed the content of the file (not the file itself) but it still worked.
So maybe the passages are needed only if you do it in a new file?
@DavidCarlisle Oh :P
 
@Alenanno Hmm, if you don't recompile the -frn file you just get the old PDF
 
@egreg If I recompile the frn, I get an error. That's odd.
 
@Alenanno Error in the commands.
 
@egreg This command gives me an error in the frn file: \preparefrontpagestandard
If I delete it, everything works as usual.
 
11:40 AM
@Alenanno Apparently the -frn file got corrupted; regenerating it fixes the issue.
 
@egreg try reading this, it should help: translate.google.co.uk/…
 
@egreg It appears also in newly-generated files. It's weird.
 
12:19 PM
@Alenanno Example?
 
@egreg I was expecting exempli gratia. :)
 
@PauloCereda id est and videlicet
 
@egreg ooh
 
12:47 PM
@egreg If I delete the frn files and recompile the original, it generates another frn which still contains that line.
 
@Alenanno This is what I get if I compile the example in the question:
\documentclass [titlepage]{article}
\usepackage [a4paper,left=1cm,bottom=1.5cm,right=1cm,top=1cm]{geometry}
\usepackage[nowrite,infront]{frontespizio}
\nofiles
\fontoptionnormal
\Istituzione {Universit\‘a di Pisa}
\Facolta {Ingegneria}
\Corso [Laurea Magistrale]{Corso di Laurea}
\Annoaccademico {2014--2015}
\Titoletto {Tesi di laurea}
\Titolo {000000}
\Candidato [PP999999]{Paperon de’ Paperoni}
\Relatore {Giovanni Episcopo}
\Relatore {Pippo Cluvio}
\Correlatore {Ugo Frogio}
\Correlatore {Ubaldo Kutuzu}
@Alenanno What version of frontespizio do you have?
 
Uhm, 1.4a I think
 
@Alenanno An example that shows the behavior?
@Alenanno I get no \preparefontpagestandard, as you see.
 
Try like this
\documentclass[a4paper,titlepage]{book}

\usepackage[italian]{babel}
\usepackage{frontespizio}

\begin{document}
    \begin{frontespizio}
        \Istituzione{Universit\‘a di Pisa}
        \Facolta{Ingegneriaedjeijde}
        \Corso{Corso di Laurea}
        \Annoaccademico{2014--2015}
        \Titoletto{Tesi di laurea}
        \Titolo{000000}
        \Candidato[PP999999]{Paperon de’ Paperoni}
        \Relatore{Giovanni Episcopo}
        \Relatore{Pippo Cluvio}
        \Correlatore{Ugo Frogio}
        \Correlatore{Ubaldo Kutuzu}
 
@Alenanno No strange thing, apart from the bad character for the accent that should be a back quote.
@Alenanno Sorry, I didn't realize that I had an old copy of the package; the -frn file I get (after fixing the accent) is as follows
%% This file has been automatically generated by `frontespizio'.
%% Don't use it as a model for a new frontispiece, use the
%% `frontespizio' environment in you document instead.
\documentclass [titlepage]{article}
\usepackage [a4paper,left=1cm,bottom=1.5cm,right=1cm,top=1cm]{geometry}
\usepackage {graphicx}
\usepackage [svgnames]{xcolor}
\usepackage[nowrite,infront,standard]{frontespizio}
\nofiles
\fontoptionnormal
\Istituzione {Universit\`a di Pisa}
\Facolta {Ingegneriaedjeijde}
\Corso [Laurea Magistrale]{Corso di Laurea}
@Alenanno But it compiles flawlessly.
 
1:26 PM
@egreg It does in mine too. But if I recompile the frn one, it says "undefined control sequence"
 
@Alenanno Conflicting versions somewhere?
 
@egreg I doubt that. I have only one frontespizio package in Tex Live
 
@Alenanno The error is not in \preparefrontpagestandard, but in the bad accent.
! Undefined control sequence.
\front@instit ->Universit\?
                           ??a di Pisa
l.23 \preparefrontpagestandard
 
@egreg Ah right. That was it.
 
2:09 PM
@egreg 8 seconds longer but I gave two versions:-)
 
@DavidCarlisle Is there cat on Windoze?
 
@egreg type
@egreg but as I said in my answer. I'm on windows and have cat ...
 
@DavidCarlisle My solution allows for adding other things between files, for instance a title.
 
@egreg I know, I alluded to that in mine (that is the first with sed is more flexible than just concatenating the files)
 
2:46 PM
Is there a way to do the equivalent of \includepdf but keep the content of filled in forms in the included PDF?
 
@AdamLiter Inclusion of PDF usually loses links and so on.
 
That question has five different tags. What to do with it?
 
@egreg Ah, yeah, I just saw this question, and the only answer seems to be to print the PDF before including it.
 
1
Q: Report template for thesis

SamiaI am writing my thesis using the report template. I want to start counting the pages from the first chapter and leave all the presentation pages with no page numbering. I also need to reduce the size of my titles Chapter:14pt Sections:12pt Subsections:12pt I am using this but it isn't workin...

 
3:55 PM
heya
 
4:29 PM
howdy
 
Yo friends of Latex
 
Time to go to catch my train, sorry for not being in the party.
 
yello
:)
 
hey anyone know if one can draw an ellipse by just giving, say, six coordinates?
so that the ellipse segments would curve smoothly between those coordinates
 
4:45 PM
@morbusg ooh I have no idea. :)
Ducks are bad with geometry. :)
 
@morbusg 6 is over-constrained but analytic solutions for 5 points are here (may be better just first place I landed on) so you just need to solve for your points then plot the resulting function... mathematica.stackexchange.com/questions/60779/…
 
@DavidCarlisle: Ooh! Thank you! :) @Paulo: Haha! :D
 
5:19 PM
@DavidCarlisle Here I am, sipping on my wine, and discover that you remember that a conic section is determined by five points. :)
 
@egreg Like a boss. :)
 
5:31 PM
@PauloCereda The train is just 12 minutes late. Normal for Italian standards.
 
@egreg Oh no. :(
 
@PauloCereda Don't despair: I caught the train before the usual one, which is 90 minutes late, at the moment.
 
@DavidCarlisle That code is so long though ¬_¬
 
5:46 PM
@Alenanno yes but \hline\\\hline is just wrong, sorry.
 
@DavidCarlisle No worries lol, why is it wrong?
 
@Alenanno because the space between the lines is supposed to be \doublerulesep so more or less the width of the lines, not the height of a row of text.
 
@DavidCarlisle Uhm. I'll remove the answer until the question is clearer.
 
 
2 hours later…
7:25 PM
@1010011010 "@DavidCarlisle That's precisely the goal.." but that is the default alignment, (once you get rid of the to 0pt) the image on your right just shows that the baselines are not aligned doesn't it?
 
@DavidCarlisle \raise\ht2 does the correct thing
If box2 is a \vtop construct
Now I need to somehow find out how to do it in the main document...
Since you had the cool idea of doing
  \setbox\tw@\vbox{%
  \unvbox\tw@%
  \setbox\tw@\lastbox
  \setbox\tw@\hbox{%
  \unhbox\tw@
  \ifodd\c@page
    \global\setbox1\lastbox%
  \fi
  \global\setbox1\lastbox%
  }}%
 
@1010011010 \raise only if you are in hmode, which you are not in your real case, in the vbox of the column you just want \vskip(whatever you had)\vskip-\ht\box\box1 which is what I suggested the other day:-)
 
@DavidCarlisle There's always \leavevmode, but anyhow, I will do it once I understand chat.stackexchange.com/transcript/message/21705403#21705403
As in, understand it well enough to know how to squeeze out a vtop instead of a vbox (simply replacing vbox by vtop doesn't do the trick)
 
7:42 PM
@1010011010 you don't want that otherwise you have to adjust for \parskip and \baselineskip/\lineskip
@1010011010 in my original version just change \parbox to \parbox[t]
 
8:19 PM
@DavidCarlisle Thanks, this seems to do the trick.
@DavidCarlisle You may need to elaborate this?
 
8:30 PM
How to know the coordinate for tikz drawing? Is there a way to show the coordinates in Texmaker? Thank you.
 
@Alenanno I updated the MWE in that hline question:-)
 
@PauloCereda How's your cold going?
 
@egreg It's a little stronger than early in the morning, but hopefully the chicken soup waiting for me in the kitchen will make me feel better. :)
@egreg: how was your wine? :)
 
@PauloCereda duck soup would be even better than chicken
 
@DavidCarlisle o.O This would be cannibalism, wouldn't it? :)
Besides, the first and last time I tried duck, I hated it instantly. :)
 
8:44 PM
@PauloCereda Good as always. But I insist on milk and grappa, with a good night's sleep.
 
@egreg ooh :)
@egreg: I drank something very unusual in Spain and it tasted very nice! Let me google it.
La horchata (del latín hordeāta, ‘de cebada’ ) es una bebida refrescante (también postre), preparada con agua, azúcar y chufas majadas (o molidas), además de ingredientes que potencian su sabor, como la canela y la piel de un limón. Las chufas son unos pequeños tubérculos con forma de nudos que proceden de las raíces de la juncia avellanada (Cyperus esculentus), que se llama así por la forma de su fruto, parecido a la avellana. == Etimología == Fundamentándose en la lingüística, la etimología de la palabra procedería del italiano y haría referencia en sus inicios al agua de cebada (si fuera de...
This one.
@DavidCarlisle: ^^ try your Spanish. :)
 
Horchata (/ɔrˈtʃɑːtə/; Spanish: [orˈtʃata]), or orxata (Catalan pronunciation: [oɾˈʃata]), is the name of several kinds of traditional beverages, made of ground almonds, sesame seeds, rice, barley, or tigernuts (chufas). == Etymology == The name derives from Catalan orxata, probably from ordiata, made from ordi (barley) (Latin *hordeata < hordeum). The Italian orzata, the French and English 'orgeat' and the Surinamese Dutch orgeade have the same origin, though the beverages themselves have diverged, and are generally no longer made from barley. Various false etymologies exist – one legend links...
 
@DavidCarlisle bah English. :P
 
@PauloCereda I can read either, of course.
 
@DavidCarlisle I know. <3
 
8:53 PM
@DavidCarlisle Oh
 
Who did know that this was the original?
 
9:17 PM
How to know the coordinate for Tikz drawing? Is there a way to show the coordinates in Texmaker? Thank you
 
@kwyip Erm, you work out the co-ordinates you want :-)
 
@cfr: Hi! Quaaack!
 
cfr
@PauloCereda Hi, I was just leaving, really... Only... Well, anyway. Thanks.
 
@cfr <3
 
cfr
@PauloCereda ;)
 
yo'
9:28 PM
Hello, everybody!
 
@yo' Hi Tom! <3
 
yo'
@PauloCereda How're you?
 

« first day (1660 days earlier)      last day (3266 days later) »