« first day (3591 days earlier)      last day (1638 days later) » 

cis
cis
00:29
Yeah, that's what a lot of people see. But that is deceptive.
tcolorbox is a powerful tool for arrangement tasks (the box layouts can be completely hidden).
You can make arrangement tasks difficult with plain-LaTeX methods and cryptic commands; or you can use tcolorbox.

It took me a long time to see this .... Ohhh no ..... once more a new syntax ... after TikZ, pgfplots, pgfplotstable .... But I've rarely bet on the wrong horse.
 
6 hours later…
Anonymous
06:46
@cis I see, thanks.
Anonymous
07:33
@cis Did you make the text 10 11 12 on the ruler above white automatically!? i.sstatic.net/uO4eq.png
Anonymous
07:54
@cis I guess I need to figure out how to make the padding dissapear.
Anonymous
Anonymous
I am currently putting them inside 1 set of rulers (sweating face) ;D I have to figure out how to get them inside 2 sets, I think it makes more sense ... or would it be more pretty inside 1set ?
Anonymous
Anonymous
08:15
Currently have something like this ...
Anonymous
Anonymous
Need to figure out how to center these pictures ...
Anonymous
08:32
halign=center

did the trick
Anonymous
08:49
Still can't figure out how to clear the seperation between the boxes
Anonymous
\documentclass[a4paper, landscape]{article}
\usepackage[margin=0cm, showframe=false]{geometry}
\geometry{paperwidth=15cm, paperheight=30cm}
\usepackage{mwe} % Dummy images

\usepackage{tcolorbox}
\tcbuselibrary{raster}

\usepackage{eso-pic}
\newcommand\myvhcenter[1]
{%
\begingroup
\sbox0{#1}%
\raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
\endgroup
}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}
Anonymous
If I scale the images now, things can go wrong as well
Anonymous
OK I guess raster column skip=0cm
@Rmano hi mr. squirrel
Anonymous
@cis I do not seem to be able to make the width= anything other than \linewidth
Anonymous
09:08
When I scale the images to 0.4 ->
Anonymous
Anonymous
09:32
I think normally it would be done with
Anonymous
hbox
Anonymous
?
Anonymous
But it doesn't have any effect in the code now ...
Anonymous
Oh ok, found it now I think. It can be solved with raster width=
Anonymous
09:50
@cis Why is there still some padding around the image here please (space between image/tcb and the rulers)?
Anonymous
\documentclass[a4paper, landscape]{article}
\usepackage[margin=0cm, showframe=false]{geometry}
\geometry{paperwidth=15cm, paperheight=30cm}
\usepackage{mwe} % Dummy images

\usepackage{tcolorbox}
\tcbuselibrary{raster}

\usepackage{eso-pic}
\newcommand\myvhcenter[1]
{%
\begingroup
\sbox0{#1}%
\raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
\endgroup
}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}
10:08
Some context connoisseur around here? A simple doc using low-level luatex, as the following one, doesn't compile anymore:
\starttext
test
\immediate\pdfextension obj stream file {duck.mp3}
\stoptext
Anonymous
raster equal skip=0pt, raster column skip=0mm

removes the top and bottom spacing, but not the left and right
@AlexG LuaMetaTeX: have to go via Lua
@JosephWright I don't understand :(
@AlexG context now uses a new engine which doesn't know the primitive anymore.
@UlrikeFischer Good to know. But what comes next (for me to do)?
10:17
@AlexG ask @MarcelKrüger he managed to create a latex format which works with the new engine (I'm on the road currently so can't check code).
Anonymous
For some reason, this solves it:
Anonymous
\begin{tcbitemize}[size=tight, halign=center, colback=gray,
raster equal skip=0pt,
raster left skip=-1mm,% this solves it
raster right skip=-1mm,% this solves it
raster width=0.6\textwidth,
boxrule = 0pt,
frame hidden,
]
@AlexG We should have this sorted soon-ish in expl3
@AlexG Welcome to to our world (@UlrikeFischer, @DavidCarlisle, @MarcelKrüger)
@JosephWright , @UlrikeFischer Thank you, but it's a solely context-related problem. Can expl3 help here?
@UlrikeFischer I even checked the documentation for dvipdfm(x) to see if it special cased white before making that comment. I should have known better.
10:24
@AlexG Well we try to keep things working as much as possible in generic mode, and we have an eye on LuaMetaTeX: certainly @MarcelKrüger has a project ongoing in this area
@DavidCarlisle I don't know if it is in the documentation, I found it while testing.
@UlrikeFischer I wonder if we should raise GitKraken again with Frank
@JosephWright ? What is the context?
@UlrikeFischer Pro licenses
Anonymous
@cis Latest version still has troubles with regards to the rulers, when they are on outside
Anonymous
10:29
\documentclass[a4paper, landscape]{article}
\usepackage[margin=0cm, showframe=false]{geometry}
\geometry{paperwidth=15cm, paperheight=30cm}
\usepackage{mwe} % Dummy images

\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{eso-pic}
\newcommand\myvhcenter[1]
{%
\begingroup
\sbox0{#1}%
\raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
\endgroup
}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}
10:52
@UlrikeFischer if (!cm || pdf_color_is_white(&bgcolor)) { return;
I should have looked in the code, not the documentation:-)
2
11:41
@PauloCereda Hi Mr Pato! Sorry just dropped in and then out to a 40km mountain bike ride, great weather here today!
Anonymous
Receiving the following error:
Anonymous
! Paragraph ended before \xComment was complete.
Anonymous
When trying to use \usepackage{comment}
Good morning everybody
Anonymous
11:57
Hi.
Anonymous
I have a small question...
Anonymous
The first line \draw stops at 1 in y-value.
How can I also let the second \draw stop at 1 in y-value?

\draw[very thick] (0,0) coordinate(B) -- (0, 1);
\foreach \n in {0,1,...,10}{%%
\draw[very thick] ([yshift=\n*\u]B) -- +(-3mm,0) node[left]{
\ifnum\n=0 \else \ifnum\n=1 \n\,cm \else \n \fi\fi};
}%%
@HenriMenke Hi, for your answer in TeX.meta and I think that the nature is wonderful...
@HenriMenke Although a chipmunk is not a marmot but I think he's getting some air conditioning too. I always wish you and him good luck and always all the best. Look only this video: video.repubblica.it/natura/…
@VincentMiaEdieVerheyen Can you make a small, but compilable document?
Anonymous
@samcarter_is_at_topanswers.xyz Yes, I will post an OP and notify you.
Anonymous
12:18
@samcarter_is_at_topanswers.xyz Please see tex.stackexchange.com/questions/560681/…
@DavidCarlisle ;-). Nice to see that the code confirms it.
Anonymous
13:08
@samcarter_is_at_topanswers.xyz How would I check to see if the y coordinate has reached 1 already?
Anonymous
I need a method to be able to extract the current coordinate of y ... I don't know how many times I will have to loop-increment, all I know is that it should stop at 1
Anonymous
Something with \pgfplotspointgetcoordinates perhaps?
13:24
\documentclass{article}

\usepackage{mwe} % Dummy images
\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\ShowHelps{0} %    1 'yes'        0   'no'

\newcommand{\UOneCoordinateX}{0.2}
\newcommand{\UOneCoordinateY}{0.09}
\newcommand{\UTwoCoordinateX}{0.2}
@VincentMiaEdieVerheyen I would let tikz draw the ticks
Anonymous
Interesting!
Anonymous
That look wonderful!
Anonymous
@samcarter_is_at_topanswers.xyz Can you use something similar to make the numbers stop as well? See:
Anonymous
\documentclass{article}

\usepackage{mwe} % Dummy images
\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\ShowHelps{0} % 1 'yes' 0 'no'

\newcommand{\UOneCoordinateX}{0.2}
\newcommand{\UOneCoordinateY}{0.09}
\newcommand{\UTwoCoordinateX}{0.2}
13:28
(the horizontal positioning if the minor ticks with -0.005 is just a guess - might need some fine tuning)
Anonymous
@samcarter_is_at_topanswers.xyz That is a matter of style, no worries :)
@VincentMiaEdieVerheyen (I don't understand why you can't change the clip)
Anonymous
@samcarter_is_at_topanswers.xyz Because then the rulers, if there are 1 on each side (4 in total) overlap very ugly in the corners.
Anonymous
I mean, we have to use

\clip (-0.1,-0.1) rectangle (1.1,1.1);

instead of

\clip (0,0) rectangle (1,1);

to be able to show the rulers outside of the image.
Anonymous
@samcarter_is_at_topanswers.xyz If you clip it there at the top, how would we be able to also have a top-ruler then, at the top side of the image?
13:31
@VincentMiaEdieVerheyen For something similar with numbers, have a look at the tikz user guide for decorations
@VincentMiaEdieVerheyen You could clip only the vertical ruler at one. For the ruler at the top, you could use another clip value
Anonymous
@samcarter_is_at_topanswers.xyz That makes sense! That would be great as well.
Anonymous
@samcarter_is_at_topanswers.xyz Which solution do you think is most elegant, to clip each ruler seperately, or to find the decorate way for the numbers?
@VincentMiaEdieVerheyen I would clip each ruler separately. You can still combine this with decorate if you want
Anonymous
That sounds great! @samcarter_is_at_topanswers.xyz How do I clip only one ruler?
Anonymous
Inside a scope?
13:37
\begin{scope}
\clip (-0.1,-0.1) rectangle (1.1,1.1);

% draw one ruler here

\end{scope}
@VincentMiaEdieVerheyen Yes, exactly
I quote from the l3 manual: “The e specifier is in many respects identical to x, but with a very different implementation. Functions which feature an e-type argument may be expandable. The drawback is that e is extremely slow (often more than 200 times slower) in older engines, more precisely in non-LuaTeX engines older than 2019”
Question: Does that mean that none of this applies to pdfTeX later than 2019?
More precisely, is it still slower than :x?
@Gaussler No, e is faster than x as long as the \expanded primitive is available.
Anonymous
@samcarter_is_at_topanswers.xyz In fact, I find that that does not look good. What is your opinion? You see the 9 is now cut off ....
Anonymous
\documentclass{article}

\usepackage{mwe} % Dummy images
\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\ShowHelps{0} % 1 'yes' 0 'no'

\newcommand{\UOneCoordinateX}{0.2}
\newcommand{\UOneCoordinateY}{0.09}
\newcommand{\UTwoCoordinateX}{0.2}
@Gaussler Another difference is that you don't have to escape #1 with ##1 in e as you'd have to do in x.
13:39
@Skillmonlikestopanswers.xyz So, in all modern engines, you should just go ahead and use it to your heart’s content?
Anonymous
Anonymous
So, perhaps the decorate way is better after all, without any clipping @samcarter_is_at_topanswers.xyz ?
@Gaussler Well, the LaTeX team is currently trying to use it sparsely or provide fallback code, but in your own code you can use it as much as you like.
@VincentMiaEdieVerheyen Oh, decorate might then be the better choice
@Gaussler but there is a minor bug in the pdfTeX and XeTeX engines regarding \expanded.
Anonymous
13:41
@samcarter_is_at_topanswers.xyz OK, I will try to copy the text as per this screenshot. Hopefully it will yields something useful.
@Gaussler This bug shouldn't affect your documents at all, but you'll get an out-of-memory error if you try to run \expanded several hundred times directly after each other (I stumbled upon that during some benchmarking, in a normal document this shouldn't ever be needed as often)
@VincentMiaEdieVerheyen better copy from the user manual then from the screenshot, then you can copy&paste :)
@Skillmonlikestopanswers.xyz I am currently developing my semantex package, which sounds like a place where you might end up doing exactly that
It’s quite expansion-heavy
So I might wait a bit before e’ing too much
Anonymous
Looking now @samcarter_is_at_topanswers.xyz Feel free to post an answer to my OP if you'd wish.
@Gaussler I doubt you'd hit that bug in any normal document, honestly.
@PhelypeOleinik and @JosephWright is there any news regarding the \expanded bug? Have you guys already had time to take a look?
13:46
@VincentMiaEdieVerheyen Just a proof of concept:
\begin{scope}[decoration={markings,
    mark=between positions 0 and 1 step \u with {
      \node [draw,
        name=mark-\pgfkeysvalueof{/pgf/decoration/mark info/sequence number},
transform shape]
{\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}};}}]
\draw [postaction={decorate}] (0,0) -- (0,1);
\end{scope}
@VincentMiaEdieVerheyen Feel free to post a self-answer. I am no longer active on tex.se
Anonymous
OK, that code is brilliant, thank you @samcarter_is_at_topanswers.xyz
Anonymous
@samcarter_is_at_topanswers.xyz How do I let the counter start at number 0 instead of at number 1
Anonymous
Still a bit difficult to understand for me, that decorate code ... for example how I could add the word cm behind 1
@Gaussler The bounder is at like 500000 calls to \expanded, see the following MWE:
\def\zz#1{#1#1#1#1#1#1#1#1#1#1}
\def\zzz#1{\zz{#1}\zz{#1}\zz{#1}\zz{#1}\zz{#1}\zz{#1}\zz{#1}\zz{#1}\zz{#1}\zz{#1}}
\def\zzzz#1{\zzz{#1}\zzz{#1}\zzz{#1}\zzz{#1}\zzz{#1}\zzz{#1}\zzz{#1}\zzz{#1}\zzz{#1}\zzz{#1}}
\def\zzzzz#1{\zzzz{#1}\zzzz{#1}\zzzz{#1}\zzzz{#1}\zzzz{#1}\zzzz{#1}\zzzz{#1}\zzzz{#1}\zzzz{#1}\zzzz{#1}}
\def\zzzzzz#1{\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}\zzzzz{#1}}
\def\zzzzzzz#1{\zzzzzz{#1}\zzzzzz{#1}\zzzzzz{#1}\zzzzzz{#1}\zzzzzz{#1}}%\zzzzzz{#1}\zzzzzz{#1}\zzzzzz{#1}\zzzzzz{#1}\zzzzzz{#1}}
@Skillmonlikestopanswers.xyz What do you mean, this is not a normal TeX document? This is how my average TeX document looks xD
Or perhaps more similar to Dan Carlin’s Christmas special
Sorry, Carlisle
13:53
@Gaussler that was my MWE to show the \expanded bug.
I mixed them up
please don’t tell tehm
@Skillmonlikestopanswers.xyz Thanks :-)
@Gaussler oh wait, miscounted, that's 5 million calls, I think...
Anonymous
@samcarter_is_at_topanswers.xyz I can ommit the 0 now, but I am still looking for a way to rotate the numbers 90 degrees, to make them legible
Anonymous
ok found it as well
Anonymous
now hoping to remove those boxes around the numbers :0
Anonymous
13:58
ok, finding it i guess I can make it white or opaque
@VincentMiaEdieVerheyen To start from 0:
\documentclass{article}

\usepackage{mwe} % Dummy images
\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.markings}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\ShowHelps{0} %    1 'yes'        0   'no'

\newcommand{\UOneCoordinateX}{0.2}
\newcommand{\UOneCoordinateY}{0.09}
@Skillmonlikestopanswers.xyz Sorry, I haven't looked yet (and not sure when I will) :-(.
@PhelypeOleinik No problem, I was just curious (in the end I might as well learn WEB and read the implementation myself, or is there a C version I can read?)
@VincentMiaEdieVerheyen ... and adding the 0 cm:
\documentclass{article}

\usepackage{mwe} % Dummy images
\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.markings}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\ShowHelps{0} %    1 'yes'        0   'no'

\newcommand{\UOneCoordinateX}{0.2}
\newcommand{\UOneCoordinateY}{0.09}
@VincentMiaEdieVerheyen ... and some better alignment:
\documentclass{article}

\usepackage{mwe} % Dummy images
\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.markings}
\pgfkeys{/tikz/savevalue/.code 2 args={\global\edef#1{#2}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\ShowHelps{0} %    1 'yes'        0   'no'

\newcommand{\UOneCoordinateX}{0.2}
\newcommand{\UOneCoordinateY}{0.09}
Anonymous
So cool @samcarter_is_at_topanswers.xyz :)
14:01
@VincentMiaEdieVerheyen You're welcome!
@Skillmonlikestopanswers.xyz WEB is not that hard to understand; it's much harder to write and to debug (you will often forget a ; or add one too many). The harder part is to understand how TeX allocates and uses memory (for me, at least).
@Skillmonlikestopanswers.xyz As for a C version, only LuaTeX and the output of web2c, that I know of
@PhelypeOleinik and then I'd have to see whether my C skills are sufficient... :)
@Skillmonlikestopanswers.xyz I think nobody's C is good enough to understand the output of web2c (well, maybe Hans and the LuaTeX people :-)
Anonymous
14:18
@samcarter_is_at_topanswers.xyz Now looking for away to increase the width of the big ticks. there seems to be no segment width
Anonymous
seems to be related to amplitude
Anonymous
OK, one can include
Anonymous
/pgf/decoration/amplitude=0.2cm
Anonymous
@samcarter_is_at_topanswers.xyz The problem with this method is that it does not go well when one changes the scale of

raster width=0.9\textwidth,
Anonymous
\documentclass[a4paper, landscape]{article}
\usepackage[margin=0cm, showframe=false]{geometry}
\geometry{paperwidth=15cm, paperheight=30cm}
\usepackage{mwe} % Dummy images

\usepackage{comment}

\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{eso-pic}
\newcommand\myvhcenter[1]
{%
\begingroup
\sbox0{#1}%
\raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
\endgroup
}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
Anonymous
14:30
Ok I guess it can be solved by makin them dependent on mu
Anonymous
\documentclass[a4paper, landscape]{article}
\usepackage[margin=0cm, showframe=false]{geometry}
\geometry{paperwidth=15cm, paperheight=30cm}
\usepackage{mwe} % Dummy images

\usepackage{comment}

\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{eso-pic}
\newcommand\myvhcenter[1]
{%
\begingroup
\sbox0{#1}%
\raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
\endgroup
}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
Anonymous
14:40
@samcarter_is_at_topanswers.xyz So now it works for the left and righ y rulers :), now I still have to figure out how to the top and the bottom one
Anonymous
\documentclass[a4paper, landscape]{article}
\usepackage[margin=0cm, showframe=false]{geometry}
\geometry{paperwidth=15cm, paperheight=30cm}
\usepackage{mwe} % Dummy images

\usepackage{comment}

\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{eso-pic}
\newcommand\myvhcenter[1]
{%
\begingroup
\sbox0{#1}%
\raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
\endgroup
}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
Anonymous
14:56
\documentclass[a4paper, landscape]{article}
\usepackage[margin=0cm, showframe=false]{geometry}
\geometry{paperwidth=15cm, paperheight=30cm}
\usepackage{mwe} % Dummy images

\usepackage{comment}

\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\usepackage{eso-pic}
\newcommand\myvhcenter[1]
{%
\begingroup
\sbox0{#1}%
\raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
\endgroup
}

\usepackage{tikz}
\usepackage{tikzpagenodes} % current page text area.center
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
@VincentMiaEdieVerheyen Just the same way as the vertical rulers:
Anonymous
15:07
@samcarter_is_at_topanswers.xyz ❤️
@VincentMiaEdieVerheyen And just for fun diagonal rulers:
Anonymous
:)
Anonymous
15:45
@Skillmonlikestopanswers.xyz Why does the following not work:
Anonymous
\newcommand\AtPageLowerCenter[1]{\AtPageUpperLeft{%
\put(\LenToUnit{.5\paperwidth-.5\ScaleImagesAndRulers},\LenToUnit{-1\paperheight}){#1}}%
}
Anonymous
How can I distract a length from LenToUnit calculation?
Anonymous
Oh, I guess because it is not a measure ... guess I need to add cm
Anonymous
@Skillmonlikestopanswers.xyz But actually I am looking for something like this, but only to center horizontally, not to center vertically:
Anonymous
19 hours ago, by Vincent Mia Edie Verheyen
2 hours ago, by Skillmon likes topanswers.xyz
\newcommand\myvhcenter[1]
  {%
    \begingroup
      \sbox0{#1}%
      \raise.5\dimexpr\dp0-\ht0\relax\hbox to 0pt{\hss\usebox0\hss}%
    \endgroup
  }
Anonymous
15:55
@Skillmonlikestopanswers.xyz Trying to get those words 'horizontal axis view' and 'vertical axis view' centered below the pictures....
Anonymous
Anonymous
Oh ... I guess I have to use the same tcbitemize ... I guess I will find a way
Anonymous
No, don't seem to find a way yet ...
Anonymous
If I could make a calculation with hspace it would be solved to
Anonymous
but it doesn't allow me to do
Anonymous
16:03
\hspace{\textwidth-\ScaleImagesAndRulers\textwidth}
@VincentMiaEdieVerheyen horizontally centring is easy, you can use \makebox[0pt][c]{<text>}.
(that's essentially the same as \hbox to 0pt{\hss<text>\hss} in the code above).
Anonymous
Hmmm ... @Skillmonlikestopanswers.xyz How do I make that into a \newcommand\myhcenter[1] ?
Anonymous
Such that I can center things on the page
@VincentMiaEdieVerheyen \newcommand\myhcenter[1]{\makebox[0pt][c]{#1}}
Anonymous
Hmm ... I see [email protected] I am missing a command to put something in the lower center.
Anonymous
16:10
There is no such thing for eso-pic?
Anonymous
I am using the following at the moment, but it just prints everything at the bottom-left corner, centered.
Anonymous
\AddToShipoutPictureBG{\AtPageLowerLeft{
\myhcenter{
\begin{tcbitemize}[size=tight, halign=center, colback=white,
raster equal skip=0pt,
raster left skip=-1mm,% this solves it
raster right skip=-1mm,% this solves it
raster width=\ScaleImagesAndRulers\textwidth,
boxrule = 0pt,
frame hidden,
]
\tcbitem \Huge Horizontal axis view
\tcbitem \Huge Vertical axis view
\end{tcbitemize}
}}
}
Anonymous
@VincentMiaEdieVerheyen \AddToShipoutPictureBG{\put(\LenToUnit{.5\paperwidth}, 0){\makebox[0pt][c]{<stuff>}}} should do.
@VincentMiaEdieVerheyen I misunderstood what you wanted with \myhcenter. That one centres only with respect to the current position, not on the page.
Anonymous
@Skillmonlikestopanswers.xyz Great, this is is great. Thanks.
Anonymous
16:22
Now to fiddle with the vspace, I have to use another tabular? xD
Anonymous
I don't think I can put the \begin{tcbitemize} inside a tabular? @Skillmonlikestopanswers.xyz
Anonymous
Oh, I found a way
Anonymous
tcbitem \Huge Horizontal axis view \vspace{2.5em}\\
Anonymous
@Skillmonlikestopanswers.xyz Would you know a way to print text, right-aligned, at the top-right of the page?
Anonymous
like raggedright? to print something on every page?
16:44
@Skillmonlikestopanswers.xyz @PhelypeOleinik @JosephWright I've got a patch for the expanded issue. What's the right list to send it to?
3
@MarcelKrüger TeX Live is the usual place
@MarcelKrüger Or just mail it to Karl: in the end, that's what's important
@MarcelKrüger You're fast :D
@JosephWright Great, I'll do that.
Anonymous
@PabloGonzálezL Does this allow a way to convert a pdf to an amimated gif? I am using some online tool currently.
Anonymous
17:09
will try to see how it compares to
Anonymous
convert -alpha deactivate -verbose -delay 50 -loop 0 -density 300 paper.pdf file.gif
Anonymous
17:29
@cis I am having some troubles with removing lines from tcb:
Anonymous
I have indicated the grey lines here in red ... this is annoying
Anonymous
Anonymous
They appear, e.g. here:
Anonymous
\begin{tcbitemize}[size=tight, halign=center, colback=white,
raster equal skip=0pt,
raster left skip=-1mm,% including this to solve horizontal alignment issues
raster right skip=-1mm,% including this to solve horizontal alignment issues
raster width=\ScaleImagesAndRulers\textwidth,
boxrule = 0pt,
frame hidden,
]
\tcbitem \large Top-bottom rotation \vspace{1.5em}\\
\tcbitem \large Side rotation \vspace{1.5em}\\
\end{tcbitemize}
}
Anonymous
People have this issue here as well: tex.stackexchange.com/questions/247506/…
Anonymous
17:36
So maybe there is a better alternative to \begin{tcbitemize} after all, just to divide something into 2 columns?
Anonymous
@DavidCarlisle?
cis
cis
17:49
I am not coming with you.
Can you post a question with a working minimal example on the main page, listing all (remaining) problems?

A few things stand out:
- In my opinion, eso-pic can be avoided completely if tcolorbox is used.

- "Header" and "Footer" can be placed more easily.
18:11
@VincentMiaEdieVerheyen sorry not following this at all far too many disconnected fragments to look at.
Anonymous
OK I will try to do that cis. Maybe one of these days. I am still fiddling a bit with the rulers ... perhaps I want to divide them into two seperate boxes, per picture ... I don't know what is the scientific concensus on this ...

By the way, when I export from PDF to GIF using

convert -alpha deactivate -verbose -delay 50 -loop 0 -density 400 paper.pdf file.gif

then even at 400 density, the output is lame
Anonymous
Very pixelized:
Anonymous
@VincentMiaEdieVerheyen \AddToShipoutPictureBG{\put(\LenToUnit{\paperwidth},\LenToUnit{\paperheight}){\llap{<stuff>}}}.
cis
cis
Otherwise: I see, you use eso-pic to generate a "Header" and a "Footer" manually; I think due to you set
`\geometry{paperwidth=15cm, paperheight=30cm}`, so you do not have a header and footer from your documentclass.
Mmmh, ok. Why not.
18:23
@MarcelKrüger May I ask what the issue was (not that I know anything about the internals...)
Anonymous
The issue that I describe here https://chat.stackexchange.com/transcript/message/55398619#55398619 is also reported here https://tex.stackexchange.com/questions/247506/how-to-draw-a-bicolor-tcolorbox-without-frame, it is that narrow ghost lines remain when using tcbitemize

i now circumvent this by making everything white ... but this is not ideal
@VincentMiaEdieVerheyen that message wasn't directed to you but to @MarcelKrüger who had a patch for a bug in two of the TeX engines.
Anonymous
ok :)
@Skillmonlikestopanswers.xyz When TeX stores a token list e.g. for a macro definition, it stores a reference counter prepended to the token list. \expanded used a way of scanning the token list which also prepended the reference counter, but then passed it to the input stack in a way that the reference counter isn't needed. Therefore the reference counter is not tracked by the input handling code. But the expanded code never released the reference counter...
cis
cis
Here I can't say better or worse.

Flat-rate:

tcolorbox is an extensive application that does a lot of calculations for dimensions in the background.

parbox is plain LaTeX style, for whose use you have to have the appropriate dimensions ready or calculate yourself.
18:29
@Skillmonlikestopanswers.xyz The counters are stored in main memory which in TeXLive defaults to 50000000 slots. So after that, the leaked counters occupy the entire allocated allocated main memory.
@MarcelKrüger ah, I'd have guessed something like that (some allocation in TeXs memory not being freed correctly).
@MarcelKrüger thanks for the explanation!
@cis and @VincentMiaEdieVerheyen I'd say that tcolorbox is that fancy party service that organizes your birthday, \parbox is just a hut in your garden. It gets the job it is made for done perfectly, but nothing more than that.
cis
cis
@Skillmonlikestopanswers.xyz Hehe... :()
It is true that in tcolorbos you sometimes have to fight against given formats or have to turn off auto formats first (such as "forced frames").
On the other hand, the whole thing has a mostly simple syntax.
Anonymous
@cis I see, then I might want to study that package a bit more and learn how to use it well.
Anonymous
I don't understand why C in the following gets printed on a new row, whereas A and B are on the same row, in a different column:
Anonymous
\begin{tcbitemize}[size=tight, halign=center, raster equal skip=0pt, raster width=0.2\textwidth, boxrule = 0pt, frame hidden, colframe=white, colback=white, colbacklower=white,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
]
\tcbitem \large A \\
\tcbitem \large B \\
\tcbitem \large C \\
\end{tcbitemize}
18:39
@cis oh, these days I look like I don't like tcolorbox, when actually the opposite is the case, I use it in my own documents and like it, I just also like knowing how to do things on your own... And I don't like using tools that do everything, when you don't need everything but just \parbox.... :)
Anonymous
\begin{tcbitemize}[size=tight, halign=center, raster equal skip=0pt, raster width=0.2\textwidth, boxrule = 0pt, frame hidden, colframe=gray, colback=white, colbacklower=gray,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
]
\tcbitem \large A \\
\end{tcbitemize}

Produces the ghost lines as described in https://tex.stackexchange.com/questions/247506/how-to-draw-a-bicolor-tcolorbox-without-frame

Only if you change everything from gray to white, they will dissapear on a white background ...
I need fancy microtypography on my ereader :(
cis
cis
@VincentMiaEdieVerheyen Bacuse you do not say him: raster columns=3
\documentclass[a4paper, landscape]{article}
\usepackage[most]{tcolorbox}

\begin{document}
\begin{tcbitemize}[raster columns=3,
size=tight, halign=center, raster equal skip=0pt, raster width=0.2\textwidth, boxrule = 1pt,  % just
%frame hidden,  % to have
%colframe=white, % a look
colback=white, colbacklower=white,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
]
\tcbitem \large A \\
\tcbitem \large B \\
\tcbitem \large C \\
\end{tcbitemize}
\end{document}
Anonymous
@cis OK, understood, thank you :)
cis
cis
@VincentMiaEdieVerheyen By the way: Please always post examples runable.
Anonymous
18:45
@cis Yes, will do from now.
Anonymous
@cis Here I get the gray ghost lines:
Anonymous
\documentclass[a4paper, landscape]{article}

\usepackage[skins]{tcolorbox}
\tcbuselibrary{raster}

\begin{document}

\begin{tcbitemize}[raster columns=3, size=tight, halign=center, raster equal skip=0pt, raster width=1\textwidth, boxrule = 0pt, frame hidden, colframe=gray, colback=white, colbacklower=gray,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
]
\tcbitem \large \textbf{scopeObject-00001}\\
\tcbitem \large \textbf{Found in August 2020 at 51.208 North, 4.383 East}\\
Anonymous
Do you have the same?
cis
cis
The ghostlines can partially remain in the preview, depending on the TeX editor (not with my TeXworks).
In the main reading program, e.g. AdobeReader, they should be gone.
Anonymous
19:00
@cis If I use GraphicsMagick for example to convert the PDF output to a GIF, they also remain in the GIF output ...
cis
cis
I understand, so you should set
colframe=white,
not colframe=gray as you have done in your MWE.
Anonymous
Yes, I am making all white for now ... but I guess I will have to change all whenever the background would change ... not ideal.
Anonymous
Other than that, the columns are enjoyable now :)
cis
cis
@VincentMiaEdieVerheyen raster width=1\textwidth, seems to be ignored, but
\documentclass[a4paper, landscape]{article}
\usepackage[showframe=true]{geometry}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcbitemize}[raster columns=3, size=tight, halign=center,
raster equal skip=0pt,
%raster width=5cm, %1\textwidth,  %  default = \linewidth
boxrule =3pt, % just to have
colframe=gray, %white % a look
frame hidden,
colback=white, colbacklower=gray,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
]
\tcbitem \large \textbf{scopeObject-00001}\\
Anonymous
@cis How would you go about centering both A and B, i.e. the complete parbox on the page? -> MWE
Anonymous
19:10
\documentclass[a4paper, landscape]{article}
\usepackage[most]{tcolorbox}

\begin{document}

\begin{tcbitemize}[center, size=tight, raster columns=2, halign=center, raster equal skip=0pt, raster width=0.5\textwidth, boxrule = 2pt,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
]
\tcbitem \large A \vspace{1.5em}\\
\tcbitem \large B \vspace{1.5em}\\
\end{tcbitemize}

\end{document}
Anonymous
@cis What did you do here please? Help me understand what this is for? :)
Anonymous
And how would I print a footer on a page with \begin{tcbitemize}
cis
cis
@VincentMiaEdieVerheyen This is hard, but the method is used by the author himself:
\documentclass[a4paper, landscape]{article}
\usepackage[showframe=true]{geometry}
\usepackage[most]{tcolorbox}

\begin{document}

\centering\mbox{\begin{tcbitemize}[
%center,
%before=\centering, after=\par\bigskip, % doesn't work at tcbitiemize
%hbox,
size=tight,
raster columns=2,
halign=center, raster equal skip=0pt,
raster width=0.5\textwidth,
boxrule = 2pt,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
]
\tcbitem \large A %\vspace{1.5em}\\
In my opinion, the simplest would be if the document had a footer, this could be done in the classic way with a page layout package (scrlayer-scrpage)

But since header / footer were turned off with geometry, I would use eso-pic as in the other cases.
20:08
@DavidCarlisle impressing ratio question length/answer length in the unboxing question ;-)
20:24
@UlrikeFischer what else could I say:-)
@DavidCarlisle you could add a few pictures ;-)
@UlrikeFischer like that?
cis
cis
@VincentMiaEdieVerheyen Command back!

It is simply `raster halign=center % centers the whole environment`
\documentclass[a4paper, landscape]{article}
\usepackage[showframe=true]{geometry}
\usepackage[most]{tcolorbox}

\begin{document}
\begin{tcbitemize}[
raster halign=center, % centers the whole environment
size=tight,
raster columns=2,
halign=center, raster equal skip=0pt,
raster width=0.5\textwidth,
boxrule = 2pt,
raster left skip=-1mm, raster right skip=-1mm,% including this to solve horizontal alignment issues
raster equal height=rows, % <--- Maybe wanted
]
\tcbitem \large A \vspace{1.5em}\\ a%<-- this is expanded inside the item
PS: If there is a use of \mbox{....... or \centering or .....
due to a tcolorbox one should become skeptical; because normally there are keys that set something like that.
20:48
@DavidCarlisle perfect ;-)
@UlrikeFischer do you think I should add a recipe to go with it?
@DavidCarlisle two would be better, to produce more lines.
@UlrikeFischer @PauloCereda may have some suitable text
@AlanMunn keeping the evening meal fresh
cis
cis
20:56
@AlanMunn That's the difference between a dog and a cat. The cat would not lie in the mud. On the other hand, it would also eat the chicks...
@cis Cleanliness is therefore not next to dogliness. :)
21:39
@cis You don't have enough faith in cats:
user image
4
21:52
@samcarter_is_at_topanswers.xyz Clearly that's the before picture. Where's the after picture? :)
 
2 hours later…
23:29
@VincentMiaEdieVerheyen See tex.stackexchange.com/a/117544/7832
@VincentMiaEdieVerheyen But when it comes to animation, the expert is @AlexG :)
@AlanMunn I think I overestimated the powers of a duck :-)

« first day (3591 days earlier)      last day (1638 days later) »