« first day (2881 days earlier)      last day (2043 days later) » 

12:37 AM
Hello!
In a truth table, how do we should write the T and F letters? Suppose we are in a math matrix, e.g. \[\begin{matrix}...\end{matrix}\]
I think that as T and F are letters, it is enough to write \text T and \text F... right?
(T: true, F: false)
 
 
2 hours later…
2:55 AM
how can i define my own quantifier? like, let's say i want to use C as a quantifier, so I can write $C_{n = 0}^{k}$ and get $n = 0$ typeset below $C$, and $k$ typeset above $C$
 
 
1 hour later…
4:19 AM
@user89 \usepackage{amsmath}\DeclareMathOperator*{\C}{C}.
 
 
2 hours later…
5:55 AM
@AlanMunn that's it! thank you
 
6:45 AM
yesterday, by David Carlisle
@manooooh because \mathrm is for math and \text is for text (there is a clue in the names:-)
@Canageek that's what it does do doesn't it?
 
7:28 AM
@Canageek just a small collection: imagemagick (image files from and to pdf), pdfjam (a shell script to the LaTeX package pdfpages), pdfjoin (a wrapper around pdfjam), qpdf (PDF to PDF conversions, I use it frequently to remove passphrases) maybe pandoc (don't know its features, but there are some questions concerning it on TeX.SX). I think one can also shell script libreoffice but I'm not sure what is possible with it.
 
 
2 hours later…
9:15 AM
@manooooh \mathrm{T} and \mathrm{F}
 
9:31 AM
@DavidCarlisle Yet another reminder for myself to gather up all my information about wrong uses of \text and make a question+answer listing all these. I think nowadays, wrong use of \text is almost seen more often than users using \\ or \newline in the text.
 
@daleif Not to mention \textbf instead of \mathbf: I keep finding it frequently.
 
 
4 hours later…
1:37 PM
@samcarter You deleted my tikzducks tag tex.stackexchange.com/posts/451694/revisions! But there clearly is one in my answer!1!
 
@KeksDose According to the policies, tags must be related to the question.
 
@KeksDose I saw the duck in your nice answer and upvoted, nevertheless the question is not about tikzducks.
 
Buhuuu!
 
2:06 PM
@DavidCarlisle @egreg thanks, I supposed that. I thought T and F were letters, not math symbols
 
@manooooh no T is the symbol denoting the true value you wouldn't want an italic T if you happened to be in an italic paragraph outside the math
 
2:25 PM
@DavidCarlisle and the next package for me ...
 
2:39 PM
@egreg -- sent in email. still a bit puzzling (no explicit example), but it does record spivak's reasoning.
 
3:31 PM
@samcarter Are questions that are not about tikzducks even admissible? ;-)
 
@marmot Sure, questions about tikzmarots or tikzlings are also admissible :)
 
@samcarter What is a marot? ;-)
 
3:47 PM
@marmot Arg, sorry. It is either a French poet or the proof that I'm unable to press the m key.
 
@samcarter Probably there are just too many m's. ;-)
 
@marmot not as many m's as there: tripadvisor.co.nz/… :)
 
@samcarter Mmmmmmm ;-)
 
4:24 PM
Today when I updated packages using tlmgr, the "packages" pdftex and luatex also got updated. Any idea why?
I mean what are these updates?
 
@Krishna Probably a library update
 
4:45 PM
@JosephWright I'm fighting with l3build and trying to get the tds layout for lualibs right. I have a number of lua files in the main dir. Almost all of them should be installed in texmf/tex/luatex, two in texmf/source and build.lua which is also in the main dir should not be installed.
 
@UlrikeFischer So you are listing them all manually as either installfiles or sourcefiles?
 
5:06 PM
@JosephWright I seem to have managed it with patterns:
installfiles = {
                "**/lualibs-*.lua",
                "lualibs.lua",
               }
sourcefiles  = {
            "*.dtx",
            "lualibs-*.lua",
            "whatsnew.lua"
           }
 
@UlrikeFischer Looks reasonable :)
@UlrikeFischer Recursive copying is handy for these cases
 
But it is like playing chess. How to keep the queen from interfering while at the same time activating the rool.
 
What is the trick to using a # in a file name? Yes, I know one shouldn't do that, but ...
 
@UlrikeFischer Right ...
@UlrikeFischer Layout is likely one somewhat removed from the original spec
 
@JosephWright in luaotfload I have files in src and in scripts. How can I move the files in scripts into the tds?
 
5:13 PM
@UlrikeFischer Hmm, need to think about that
 
@JosephWright I'm not quite sure if they (like the makefiles) really belong to ctan. But in the current package they are there, and so I was trying to keep this.
 
@UlrikeFischer Right, yes
@UlrikeFischer Scripts do sound like they shouldn't be distributed: can I take a look?
 
@JosephWright ctan.org/tex-archive/macros/luatex/generic/luaotfload. The mkXXX-files are lua-scripts. In texlive they ended in the scripts-folder. Thinking about it, I should simply not sent them to ctan. It doesn't make sense.
 
5:29 PM
Using \string# (this is within double quotes as there are also spaces in the file name) produces the correct result but only after several error messages.
 
@PeterGrill Need the context
 
@JosephWright \includegraphics{"<file name with path containing spaces and #>"}. Wondering what the trick to use #` in a file name is. Using "\string#" produces the correct result, but only after errors that I have to skip over.
 
@PeterGrill The code inside \includegraphics doesn't expand the name at the first step. You could do
\edef\temp{\noexpand\includegraphics{"foo\string#"}}\temp
 
@JosephWright Yep, that worrked. Thanks.
 
6:14 PM
@JosephWright wouldn't an \edef\temp{\noexpand\includegraphics{\detokenize{"foo#"}}\temp be better (active " due to babel could lead to problems and the \detokenize would solve any number of questionable characters)?
 
@Skillmon Count your # tokens ...
 
@JosephWright that's an argument against my suggestion.
 
 
1 hour later…
7:59 PM
@PeterGrill mv 'foo#bar.png' foo-bar.png ... \includegraphics{foo-bar}
 
8:09 PM
@PeterGrill regex to the rescue
\ExplSyntaxOn
\NewDocumentCommand{\hincludegraphics}{O{}m}
 {
  \tl_set:Nn \l_tmpa_tl { #2 }
  \regex_replace_all:nnN { \cP\# } { \cO\# } \l_tmpa_tl
  \includegraphics[#1]{\l_tmpa_tl}
 }
\ExplSyntaxOff
I tried with a picture named #duck#.jpg
 
@egreg And what did you get? A duck or a koala? ;-)
 
@marmot Not a marmot, of course. ;-)
 
@egreg Molto bene! As long as you get a marmot when you want one.
 
8:39 PM
\documentclass{article}
\usepackage{xparse}
\usepackage{graphicx}

\ExplSyntaxOn
\NewDocumentCommand{\hincludegraphics}{O{}m}
 {
  \tl_set:Nn \l_tmpa_tl { #2 }
  \regex_replace_all:nnN { \cP\# } { \cO\# } \l_tmpa_tl
  \includegraphics[#1]{\l_tmpa_tl}
 }
\ExplSyntaxOff

\begin{document}

A hashed duck for Peter

\hincludegraphics[width=4cm]{#duck#}

\end{document}
user image
2
<#duck#.jpg, id=1, 1027.84pt x 1027.84pt>
File: #duck#.jpg Graphic file (type jpg)
<use #duck#.jpg>
Package pdftex.def Info: #duck#.jpg  used on input line 18.
@marmot ^^^^^^
@marmot I know, it's not an official duck from duckuments
 
@egreg sorry that the file name doesn't contain any hashes :(
 
8:54 PM
user image
2
@Skillmon Happier now?
<#duck#.pdf, id=1, 184.55048pt x 114.2107pt>
File: #duck#.pdf Graphic file (type pdf)
<use #duck#.pdf>
> diff '#duck#.pdf' $(kpsewhich example-image-duck.pdf)
>
@CarLaTeX Ciao!
 
@egreg Ciao!
 
parskip isn't affecting my document
\usepackage{parskip, pgfplots, needspace, times, hyperref, url, }
Do you know what the common conflicts are?
 
@egreg :) Yes
 
@ahorn Does for me
\documentclass{article}
\usepackage{parskip, pgfplots, needspace, times, hyperref, url, }

\begin{document}

This is a document.

It uses a nonzero parskip.

Better not doing it.

\end{document}
 
Btw, how do you quote code in chat rooms?
 
9:03 PM
@ahorn By the way, times has been deprecated for about 20 years.
 
What replaces it?
 
@ahorn Use backquotes for inline code; paste multiline code in the box and click on the “fixed font” button that appears.
@ahorn Nowadays I'd say \usepackage{newtxtext,newtxmath}
@ahorn Here's the version without parskip
 
@DavidCarlisle I see that LuaTeX development strikes again
1
Q: Cannot compile old luatex code

ToothrotI can't compile the answer given here: In LuaTex is it possible to change font/language according to the script/glyphs used? Is it because it's old? My compiler says that \luatexdirectlua is undefined. PS. With \directlua the error is: ! LuaTeX error luatexinterchartoks.lua:1: unexpected symb...

 
@JosephWright old news, @TeXnician just asked me to make my comment ans answer
 
@DavidCarlisle :)
 
9:14 PM
@JosephWright experimenting with converting a google-sites website to gh-pages
 
The abstract is causing my problems!
 
@ahorn abstract environments are defined by the document class you are using so it just depends on the class
 
@DavidCarlisle I'm not really advanced enough to change the class file.

Seeing as I like `times`, what is wrong with it? Is there a copyright issue with Adobe?
I'm using article
 
@ahorn it's not that you should change it yourself but just saying some code "causes problems" without saying what the problem is or what code you are using makes it hard to help
@ahorn it is better to use \usepackage{newtxtext,newtxmath} especially if you have any math
 
Thanks.
 
9:31 PM
My table is longer than my page. Should I take it out the table environment, but keep the caption inside the table environment?
 
@ahorn there are hundreds of answers about that on site, look for longtable package (or supertab or tabu, but longtable is most common, and part of the core latex release)
 
@DavidCarlisle and developed by a nice guy :)
 
@Skillmon definitely true (also bug free)
 
@DavidCarlisle Does it mean that you got it from some nice guy and just put your name on it? ;-)
 
10:02 PM
I hope you don't mind me asking. I have a .dat file for a tikzpicture, but I only want every 4th x-tick to show, not every one.
xticklabel style = {rotate=30,anchor=east},
enlargelimits = false,
xticklabels from table={unemployment.dat}{Year}, xtick=data ]
 
@ahorn Maybe you want to have a look at tex.stackexchange.com/q/283701/121799 . Of course, you could read the ticks from the table and then build up a simple list in which you only take every 4th element, or employ one of the more sophisticated and powerful answers of that question.
 
I think I can publish the new ducksay today. I hope I've done enough testing. Nah, I'll just call it bug free :)
 
@Skillmon good packages are bug free by design and don't need pre-release testing as end users volunteer to find features post release.
 
Can I change my input to the following?

2018
nan
nan
nan
2019
nan
nan
nan
2020

etc
No, I can't.
 
@ahorn Of course you can change your input like this. The question is whether this will lead to your desired output. I'd like to argue that it would be simpler to check if the \tick is divisible by 4 and only print it then.
@ahorn just try `xticklabel={%
\pgfmathsetmacro{\mytest}{ifthenelse(\tick/4-int(\tick/4)==0,1,0)}
\ifnum\mytest=1
\tick
\fi},`
and if this does not work, which is quite possible because I do not have a full example, ask a question on the main site.
 
10:18 PM
And it's on CTAN.
 
Thanks, I didn't know the syntax for testing divisibility.
 
10:32 PM
@ahorn I can reproduce your problem doing \abstract{Text of the abstract} which is wrong. You should use \begin{abstract} and \end{abstract} around the abstract text.
\documentclass{article}
\usepackage{parskip,pgfplots, needspace, times, hyperref, url, }

\begin{document}

\begin{abstract}
This is an abstract
\end{abstract}

This is a document.

It uses a nonzero parskip.

Better not doing it.

\end{document}
 
Ah, silly me.
 
Good night everybody!
 
@egreg thank you
 
@Skillmon It's 3:34 pm ...
 
11:33 PM
@marmot everybody means people
 
@DavidCarlisle That's unfair to ducks, koalas and marmots!
 
@marmot actually it's fairer, you can live in your own timezones, not GMT
 
@DavidCarlisle OK, you win. ;-)
 

« first day (2881 days earlier)      last day (2043 days later) »