« first day (889 days earlier)      last day (4045 days later) » 
00:00 - 21:0021:00 - 00:00

12:06 AM
One upvote:
15
Q: Is there any package for LaTeX dealing with a database?

suitangiIs there any package for LaTeX dealing with a database (with some of the fields being LaTeX code). For example, given a collection of problems with fields {id, name, author, refs, statement, solution, difficulty, keywords...} the package should allow to build a latex document from the data filte...

 
@Speravir Done
Good night!
 
@egreg Bye.
For the record: Down to 1092 unanswered questions now.
 
leo
12:24 AM
@cgnieder hello! I'm using your exsheets to keep track of the exercises I solve and organize them by the book they belong to. Some of this exercises are assignments, so when doing my homework I just include the ones that were asked for that homework. Then I set \SetupExSheets{solution/print=true} in order to put the questions followed by their solution. Then it appears: Exercise 3. Solution 3. etc and so on. But I want only the word "Solution", without the number,
@cgnieder since it is clear that if a solution follows a question then it answer that question. Can you help me?
 
1:22 AM
@egreg Re your comments here, does the same apply to function restrictions also?
 
leo
2:01 AM
@KannappanSampath by what I have seen, I guess so
although not sure
 
@leo I guessed too... I think I have been using the wrong thing all the time.
 
@KannappanSampath Hi ! you post an answer if you have something in your mind different from existing one :).
 
@texenthusiast No, I am happy with whatever there is in the recent answer, I am only worried about the OP's MWE, where he has strange things like \PassToPackage without loading that package and so on...
I think it is not right to use it that way.
 
@KannappanSampath you can comment the good practice after the question instead of after the answer.
 
Hah, I think the confusion is with my comments at the end of ruedi's answer...?
 
leo
@KannappanSampath Me too. I have done that things using \left. \right| a now a that I see, they look pretty bad
 
3:06 AM
@KannappanSampath Yup, the keyword is Random here.
 
@texenthusiast Hah!
 
@KannappanSampath Full disclosure: I am just a newbie :).
@KannappanSampath your username has become lengthy unless i use tab to autocomplete :)
 
@texenthusiast Me too. BTW, the confusing comments have now been deleted. Hopefully, the OP has seen them, and that is what was intended.
@texenthusiast OK, I'll go back to kan.
Am I kan now?
 
@KannappanSampath No worries :) It's your choice on usern. BTW don't delete any comments until the Q an A has grown fully, anything may change. Yes user will see his comments and mods will but not others.
 
leo
Is it impossible to define a macro \año? because of the ñ
 
kan
3:23 AM
@texenthusiast I think something like the following (of course, there must be better choice of coordinates than what I am doing... but, perhaps a beginning...):
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\pgfmathsetseed{20}
\begin{tikzpicture}
\draw
  \foreach \i in {1,...,10} {
    (rnd,rnd) rectangle (rnd,rnd)
};
\end{tikzpicture}
\end{document}
 
^^^ The rectangle vertices might be outside the paper region.
 
kan
@Karl'sstudents True, yes...
 
Hero @Karl'sstudents is back @KannappanSampath
 
kan
@texenthusiast Right!! :)
 
@texenthusiast No. I am just a bolt.
 
kan
3:25 AM
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\pgfmathsetseed{2}
\begin{tikzpicture}
\draw
  \foreach \i in {1,...,10} {
    (rnd,rnd) rectangle (rnd,rnd)
};
\end{tikzpicture}
\end{document}
@Karl'sstudents How about this one? ^^^
Going for Breakfast now....
 
@kan I think you need to make a constraint each for x and y for the bottom left and upper right vertices.
 
3:39 AM
@Karl'sstudents Refer the OP's comment below the green tick for your strength
 
@texenthusiast OK.
About circle instead of ellipse?
 
@KannappanSampath sometimes the OP is under pressure to give a green due to lack of other choices . he had mistakenly selected the green tick. You can post your tikz code also. please dont remove any comments , You have made a good point.
@Karl'sstudents OP was referring to code given by first answer where circles were also mentioned instead of rectangles. OP needs only rectangles i suppose.
@Karl'sstudents what is this \SpecialCoor or color ?
 
@texenthusiast \SpecialCoor will activate special coordinates systems other than Cartesian one. The special coordinates are RPN, Polar, algebraic, node expression, etc.
By default, loading pstricks will not activate it, but other packages derived from pstricks sometimes activate it by default.
 
@Karl'sstudents may be % paste from here would do
@Karl'sstudents grt
@Karl'sstudents for the tlmgr you got the correct answer now.
 
3:54 AM
@texenthusiast Mine is wrong :D
 
@Karl'sstudents take care , Bye. all the best for pstricks tut.
 
@texenthusiast take care too.
 
@Karl'sstudents not wrong but close for windows
 
@texenthusiast The GUI is different from one platform to another one?
 
@Karl'sstudents I dont think so. its almost same options with different colors based on interface.
 
4:03 AM
@texenthusiast OK. Thanks.
!//questions What is paulo doing now?
 
@paulo is sleeping @paulo sao
 
5:00 AM
This one can be closed as TL (outdated packages; problem solved after updating):
0
Q: Why doesn't yshift seem to work in tikzcd?

Daniel McLauryIn the tikz-cd documentation, the following code snipped is given: \begin{tikzcd} A \arrow[yshift=0.7ex]{r} \arrow[yshift=-0.7ex]{r} & B \arrow[xshift=0.7ex]{d} \arrow[xshift=-0.7ex]{d} \\ & C \end{tikzcd} and the following is shown as example output: However, when I copy and paste this cod...

 
 
3 hours later…
7:50 AM
Hi all, I need someone expert with Tex for a little job...
If anybody is interested just contact me...
@GonzaloMedina
 
8:11 AM
@Siscia What sort of job?
 
@Siscia “A little job?”
 
@JosephWright, @Qrrbrbirlbel I have some data that I want to print in a pdf
everything need to looks very good
and to be printable (well that was obvious)
 
@Siscia A plot or something else?
 
@JosephWright Nope, a Diary
I get the data fro Facebook and I want to simulate a paper-facebook
 
@Siscia So reading from some plain text file?
 
8:16 AM
Does it make any sense ?
@JosephWright That is the tricky part
I don't know much from Tex
 
@Siscia Example of the data format?
 
json
just a second i wil find you
anyway the data are not coherent
a chat conversation is very different from a video you posted + comment
that is different from a status (only text) you posted with likes and not comment
does it makes sense ?
 
If you want some form of automated processing you'll need to be able to define the input format!
 
I was thinking to use a template engine jinja2 to build a dynamic latex page
and then gave to the template class the data
to get the latex page
and then convert it to pdf
@JosephWright
anyone interested ?
readble example of the data format is coming...
that is not readable at all but you can get an idea: gist.github.com/siscia/5329584
 
 
1 hour later…
9:56 AM
@leo Huh, that's trickier than I thought it would be. I'll think of something...
 
@egreg just spent a happy 10 minutes playing with tftopl like old times, and then you beat me to the post:(
 
@DavidCarlisle Weren't you at the Cork TUG conference?
 
@egreg No I wasn't in TUG until relatively late.
 
@DavidCarlisle I enjoyed perusing tftopl to provide the answer on ligatures some days ago.
 
@leo Here you go:
\documentclass{article}
\usepackage{exsheets}

\ExplSyntaxOn
\cs_set:Npn \__exsheets_renew_qu_sol_pair:nnnnnn #1#2#3#4#5#6
  {
    \RenewDocumentEnvironment { #1 } { O{}G{} }
      { \keys_set:nn { exsheets } { #3 } \__exsheets_question: {#2,##1} {##2} }
      { \end__exsheets_question: }
    \RenewDocumentEnvironment { #4 } { O{} }
      { \keys_set:nn { exsheets } { #3 } \__exsheets_solution: {#5,##1} }
      { \end__exsheets_solution: }
  }
\RenewDocumentCommand \RenewQuSolPair { mO{}O{}mO{}O{} }
 
10:06 AM
@cgnieder \cs_set_protected:Npn, please :-)
 
@JosephWright Ah, stupid me... of course!
 
@leo short answer yes it's impossible (there is a longer answer but there's no space in this margin:-)
 
@leo fixing the errors in my previous posting:
\ExplSyntaxOn
\cs_set_protected:Npn \__exsheets_renew_qu_sol_pair:nnnnnn #1#2#3#4#5#6
  {
    \RenewDocumentEnvironment { #1 } { O{}G{} }
      { \keys_set:nn { exsheets } { #2 } \__exsheets_question: {#3,##1} {##2} }
      { \end__exsheets_question: }
    \RenewDocumentEnvironment { #4 } { O{} }
      { \keys_set:nn { exsheets } { #5 } \__exsheets_solution: {#6,##1} }
      { \end__exsheets_solution: }
  }
\RenewDocumentCommand \RenewQuSolPair { mO{}O{}mO{}O{} }
  { \__exsheets_renew_qu_sol_pair:nnnnnn { #1 } { #2 } { #3 } { #4 } { #5 } { #6 } }
 
@DavidCarlisle Nah, XeTeX or LuaTeX can both do this quite happily (although I wouldn't recommend it)
 
10:18 AM
@DominicMichaelis Morning
 
987 questions without answer
 
@DominicMichaelis Hi :)
 
@JosephWright that was the longer answer:-) plus a longer bit about tex being able to do it as well if you don't mind breaking all latex's encoding support
 
@DavidCarlisle :-)
 
10:23 AM
quack.
:)
 
@DavidCarlisle Try \dimen0=\dimexpr(3cm)*0.75\relax and \showthe\dimen0; you'll be surprised.
 
If I wanted to run a poll of the number people who wanted to do Word-style change tracking on Latex documents, how would I best go about it?
s/number people/number of people/
 
ooh reverse i-search works with iTerm! :)
 
@egreg sigh, oops:-)
 
@CharlesStewart We could come up with a blog post and try to embed some online poll mechanism, something along these lines? :)
 
10:29 AM
@JosephWright May I bug you with a “small” siunitx/LaTeX3 problem I have?
 
@PauloCereda I've though of a few such possibilities, not sure what kind of response I'd get. There are a couple of meta threads that have basically been used for polls
 
@egreg how did it get 4 upvotes:-)
 
@DavidCarlisle People trust you. They shouldn't. :P
 
@PauloCereda I was thinking of trying one of the Doodle simple polls.
 
@CharlesStewart It seems interesting.
 
10:42 AM
Wow, I gave another answer with \ensuremath. ;-)
 
i thought ensuremath is not so good
 
@egreg Oh my!
 
@PauloCereda @DavidCarlisle Btw. I didn't accept your great answers for grandma (yet), because I thought it would be nicer to give out golden badges for it :-) and I like other answers too, such as the short "blueprint" explanation -
I guess it could make some golden populist badges for the answerers. How many might be possible? 6 ?
 
@StefanKottwitz Nah don't worry. :)
 
When 3 further readers favorited the question, I will celebrate the favorite badge with another golden badge fireworks :-D
 
10:54 AM
@StefanKottwitz i updated a lot and made an extensive use of the calc functions on my graphic
 
@DominicMichaelis It is good, but should be used with care; in this application it is for something that appears in normal text, but uses math in order to work.
 
@DominicMichaelis ah, that's nice!
 
@StefanKottwitz i am still thinking a way of telling how to place the nodes from the information of the first vector
try it out if you change the vec coordiante all the picture changes only the notes don't satisfy me
 
@StefanKottwitz you don't have to game the badge system really:-) (I think you can only get one populist badge per question anyway) Just accept whichever one you'd most likely use to explain this to your grandma:-)
 
11:18 AM
@DavidCarlisle One per question and answerer I guess. It's not really gaming, it's rewarding, and I specifically liked the short analogy of LaTeX to a blueprint, it's for understanding what source code means, and that even books and buildings have source code.
 
@StefanKottwitz honestly if you prefer the blueprint one accept that: I shall not be offended:-) I spent about 30 seconds on my answer and wasn't expecting it to get any votes at all (I spent longer on this morning's \dimexpr answer that was completely wrong and I deleted before @egreg downvoted me:-)
 
@DavidCarlisle OMG did @egreg downvote you? :)
Things are getting serious then! <3
 
@DavidCarlisle And aren't badges a game system? :-) Game for the user, developed for getting users into maintaining the site, however hardly for handling the content such as the reputation game ^H^H^H^H voting system directly does.
 
11:45 AM
@PauloCereda no although he could have (the answer was completely wrong:-)
 
12:07 PM
@PauloCereda I only gave a warning. ;-)
 
12:18 PM
@JosephWright your name appearing highlighted in a question:
1
Q: Use of \GetIdInfoAuxI doesn't match its definition and other errors

Matthias PospiechI have several errors reported with this minimal example (latest TeX Live 2012). The errors were introduced with recent TeX Live updates. \RequirePackage[l2tabu, orthodox]{nag} \documentclass{scrbook} \usepackage{morewrites} \RequirePackage{listings} \AtBeginDocument{% \RequirePackage{mdframe...

@egreg "three strikes and you're out" kind of warning:-)
 
1:07 PM
There is an answer for this question, but I do not know if it is right and should be upvoted (one less in unanswered). Can soneone check please?
2
Q: get max/min value in a table column with pgfplot

user15394I'd like to get the max/min value from a specific column table via function \findmax and \findmin in order to use it in ymin and ymax. I really dont get how \pgfplotstablesort function works. What would be perfect is to call \findmax{YAmax,YA,YAmin} and get back the maximum value of those 3 colu...

 
1:19 PM
@DavidCarlisle: Why does the following NOT work?
\documentclass{beamer}
\usepackage{pstricks}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{pspicture}
\PreviewBorder=12pt

\SpecialCoor
\AtBeginDocument{\makeatletter}
\AtEndDocument{\makeatother}
\begin{document}
\begin{frame}
\begin{pspicture}[showgrid=top](4,4)
\pstVerb{/ptcm {\pst@number\psunit\space div} bind def}
\psline(!4 1 ptcm sub 0)
\end{pspicture}
\end{frame}
\end{document}
 
@Karl'sstudents beamer (or something else) is also switching catcode at that point but you don't want to do that anyway, just define in a local package or between \makeat.. \def\mycmd{\pstVerb{/ptcm {\pst@number\psunit\space div} bind def}} then in the document you can use \mycmd without worrrying about @
 
@DavidCarlisle OK. Thank you.
 
Does someone has an idea to the following issue?
6
Q: Using mdframed after a section heading

grizzilusThe following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is insufficient room to place the contents environment, the section heading gets orphaned. Replacing mdframed ...

 
@MarcoDaniel Report it to the package author
 
@DavidCarlisle The author is out of order ;-)
 
1:30 PM
First time I saw this here: "I may be able to fund some of your time if you need funding to do this." How do you react to this?
1
Q: Package animate is great but could it have a better animation compression?

Carl BaumI just tried the animate package to get pdf files with animations and it works great! However, I noticed that the size of the files generated is 10 times larger that what it could be for the animations that I am dealing with, and for most cases it is even worse. I believe that the reason is not...

 
@Kurt Here we are all volunteers.
 
@MarcoDaniel do you check for \@afterheading at all in mdframed?
 
@DavidCarlisle No.
What is the correct test?
 
@MarcoDaniel hmmmm
 
@MarcoDaniel Thats the way I see it too
 
kan
1:33 PM
@DavidCarlisle You're being mean! <3.
 
@MarcoDaniel oh heck knows. You can test that you are just after a head but what you do about it depends on what you want to do (or what you are about to do to make a frame) I'll have a look...
 
Oh no, @David wrote an email to the mailing list. I need to reply it. :)
 
@PauloCereda Which mailing list ;-)
 
@MarcoDaniel A top secret one. :) shhhh it's a secret
 
@PauloCereda Lots of secretes here;-)
 
kan
1:35 PM
LaTeX3 dev mailing list I reckon. :)
 
Oh no, now @JosephWright will push the button and my computer will explode! :)
 
My wife and I were "floating" today ;-) float.de -- No we have newfloat{marco} ;-)
2
 
@MarcoDaniel oooh! :)
 
kan
David is ignoring me. /sob.
 
@MarcoDaniel Can you take a rubber duck with you? :)
 
1:39 PM
@kan you said I was mean, what do you want me to do other than ignore, come round and thump you? :-)
 
kan
@DavidCarlisle :)
 
@PauloCereda Of course ;-) This time I had a rubber snake
 
@MarcoDaniel woohoo!
!!/cricket
Psmith, the TeX bot, in fixed font mode: Let's take a look at the last cricket results:

- Moors Sports Club 262/10 &  310/7 * v Sinhalese Sports Club 324/10
- Cambridge MCCU 80/1 &  99/10 * v Essex 328/5 &  420/4
- Durham 426/9 &  244/1  v Durham MCCU 47/1 &  176/10 *
- Glamorgan 275/7 &  241/5  v Cardiff MCCU 10/1 &  169/10 *
- Oxford MCCU 13/4 &  270/10 * v Warwickshire 293/9 &  131/10
- Sussex 297/10  v Loughborough MCCU 150/9 *
- Yorkshire 244/10 &  289/2  v Leeds/Bradford MCCU 7/1 &  118/10 *
Oh no, Cambridge is losing!
 
kan
There is the IPL cricket going on, but, I am largely ignorant!
I learnt about doctesting frameworks in Python instead!
 
!!/eightball is cricket difficult to follow?
@PauloCereda Psmith, the TeX bot: The great 8-ball says: yes, definitely.
 
kan
1:44 PM
Heh, no!
 
@PauloCereda you have a new cricket feed?
 
@DavidCarlisle Nope, it's the old one. :)
 
@PauloCereda Oh they have discovered England, it seems.
 
@DavidCarlisle I think the Duke of Edinburgh has something to do with it. :)
 
@PauloCereda Edinburgh is in Scotland (and he's Greek:-)
 
1:46 PM
@DavidCarlisle Oh!
 
The E-TeX article of @FrankMittelbach made it to slashdot.org/popular #3 :-)
 
@DavidCarlisle: In the issue above I must notice that the contents can't be splitted. If you use a simple text, it works as expected.
\documentclass{article}

\usepackage{mdframed}
\usepackage{showframe}
\usepackage{lipsum}
\newcommand{\BoxContents}{\lipsum}

\begin{document}
\vspace*{5in}
\hrulefill

\section{Section}
\begin{mdframed}% this orphans the section heading
    \BoxContents
\end{mdframed}

\clearpage

\vspace*{5in}
\hrulefill

\section{Section}

\begin{minipage}[t]{\linewidth}% this does not orphan the section heading
    \BoxContents
\end{minipage}

\end{document}
@PauloCereda Can we reduce the speaking rate.
 
@StefanKottwitz My karma on Slashdot is bad. :(
 
@PauloCereda Oh, they don't like ducks?
 
@StefanKottwitz Internet seems to be ruled by cats. :(
 
kan
2:00 PM
I like ducks, as you can clearly see. :D @PauloCereda
 
A city inside a city inside a country inside a country... wait, WHAT?!
 
@PauloCereda see it's simple (and all due to god:-)
 
@DavidCarlisle LOL
 
@PauloCereda The Gherkin!
 
@MarcoDaniel yes I got a bit lost (perhaps I should look at the doc rather than tracingall:-) but basically in your measuring code I think you end up with a \penalty 0 which allows a break point after the section.
 
2:09 PM
@egreg :D
 
@PauloCereda It's the nickname of that building
 
@egreg ooh I didn't know that!
 
@PauloCereda Note where the blame lies for the confusion (Italy)
 
@DavidCarlisle Can the following line be the result? \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi%%
 
(^^ link)
@Joseph probably monitors this chatroom for Monty Python quotes. :)
 
2:23 PM
@PauloCereda :-)
 
@MarcoDaniel don't think so, or at least not directly but why ` \let\if@nobreak\iffalse%` if@nobreak is true after a section head and part of the mechanism for preventing breaks at that point.
 
Hey guys, I was wondering if someone could help me with this question? tex.stackexchange.com/questions/107302/… I am literally one step away from publishing and this problem is stopping me from doing that. I would extremely grateful if someone could help me figure out a solution or have a solution in mind.
 
@DavidCarlisle I think the main issue based on my definition of mdf@trivlist: Maybe there can be the error:
\documentclass{article}

\usepackage{mdframed}
\makeatletter
\def\mdf@trivlist#1{%
  \edef\x{\topsep=\the\topsep\relax\partopsep=\the\partopsep\relax\parsep=\the\parsep\relax}
  \setlength{\topsep}{#1}%
  \topskip\z@
  \partopsep\z@%
  \parsep\z@%
  \@nmbrlistfalse%
  \@trivlist%
  \labelwidth\z@%
  \leftmargin\z@%
  \itemindent\z@%
  \let\@itemlabel\@empty%
  \def\makelabel##1{##1}%
  \item\relax\x\relax\leavevmode\hrule \@height\z@ \@width\linewidth\relax%
}
\renewenvironment{mdframed}[1][]{%
 
well you end up with a penalty0 immediately after the color special introduced by \color@begingroup and an explicit penalty is always a break point.
 
@DavidCarlisle color@begingroup does it? I tried \show\color@begingroup and there are no penalties.
> \color@begingroup=\begingroup.
l.25 \show\color@begingroup
 
2:43 PM
@MarcoDaniel sorry may have misread probably something is calling color@setgroup, it's not that it sets penalties it's that it leaves a color special which helps track things down ...
\showoutput\setbox0\vbox{
\section{Sectionaa}

\penalty10000
\begin{mdframed}% this orphans the section heading
    \BoxContents
\end{mdframed}
}\showbox0
produces
.\penalty 10000
.\glue 9.90276 plus 0.86108
.\penalty 10000
.\pdfcolorstack 0 push {0 g 0 G}
.\glue 0.0
.\glue(\parskip) 0.0 plus 1.0
.\hbox(0.0+0.0)x345.0, glue set 345.0fil
the brea happens at the glue 0
 
@DavidCarlisle Because the whatsit is a non discardable item and so glue after it is a legitimate break point. The special should go after the two glue items.
But \color requires \leavevmode or ...
 
@DavidCarlisle Interesting.
 
@Qrrbrbirlbel Have been out: feel free to ask away about siunitx, LaTeX3 or anything else
 
@egreg whatsit? everything ok ;-)
@egreg Based on this information the following example has the same result:
\section{Section}

\begingroup\color{red}
\begin{minipage}[t]{\linewidth}% this does not orphan the section heading
    \BoxContents
\end{minipage}
\endgroup
 
Can someone please help me make a createspace template for 5.25 x 8? I am not familiar with the geometry package.
 
3:00 PM
@PauloCereda What do you think about the manipulation of \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
 
@MarcoDaniel With \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{\textcompwordmark#1}} the ^^W is set after the opening brace.
 
@egreg And \DeclareFieldFormat{labelnumberwidth}{\textcompwordmark\mkbibbrackets{#1}}?
 
@MarcoDaniel Yes, that does it!
 
@egreg I don't forget @PauloCereda :-)
 
@gekkostate in chapter 3 of the manual of geometry you can read how the page is set with this package. I do not know what gutter and bleed means ...
 
3:07 PM
@MarcoDaniel oooh! :)
 
@MarcoDaniel I added it (with attribution) to my answer. Thanks!
 
@egreg, @Marco: Thank you both! :)
 
@JosephWright Great! I try to adapt this solution of yours regarding \newcolumntype and option arguments for a new N[<opt arg>]{<table-format>} column type where the table-format is mandatory (so I do not need to write table-format everytime), and everything between the optional brackets are passed to the S column as usual. The redefinition of \NC@rewrite@N works so far, but I need to enclose the keys in { }.
@JosephWright It appears as any s will act itself as an column argument (although it is inside of S[]) and then siunitx can't find the broken keys, obviously.
\documentclass{article}
\usepackage{siunitx}
\makeatletter
\toks@\expandafter{\the\NC@list}
\newcolumntype{N}{}
\NC@list\expandafter{\the\toks@ \NC@do N}
\renewcommand*\NC@rewrite@N[2][]{\@temptokena\expandafter{\the\@temptokena S[table-format=#2,#1]}\NC@find}
\makeatother
\begin{document}
\begin{tabular}{S[table-format=5.0, group-separator=:] N{5.0} N[{group-separator}=:,{group-minimum-digits}=3]{5.0} }
10000 & 10000 & 10000
\end{tabular}
\end{document}
group-separator (without the {}) becomes:
! Unknown option 'group->{\__siunitx_table_collect_begin:Nn
! s{}}c<{\__siunitx_table_print: }eparator'.
 
@Qrrbrbirlbel Yes, as [ ... ] does not form a group for TeX, the s in key names is not protected from the scanning that array does. As the entire mechanism is not meant to allow optional arguments, what I've done is a hack: I have to move the s/S columns to the start of the list of column types to get everything working.
@Qrrbrbirlbel You can't really pull the same trick twice, so there is a limited amount that can be done. You could I guess use \AtBeginDocument for your changes, which will push them after the siunitx ones so you don't need braces for your new type, but then you will for the s/S types (just [{ ... }] will do it)
 
3:28 PM
@JosephWright Hm, okay, what a greedy mechanism. Well, I can just bite the bullet and use two mandatory arguments, can't I? Or I use N without the optional parameter. I currently don't have an active document, but I rarely needed the optional anyway and fell back to S then.
 
@Qrrbrbirlbel Can you try this one?
\RequirePackage{array,regexpatch,xparse}
\NewDocumentCommand{\xnewcolumntype}{mO{0}om}{%
  \newcolumntype{#1}{}%
  \IfNoValueTF{#3}
    {\expandafter\renewcommand
     \expandafter*\csname NC@rewrite@#1\endcsname[#2]{#4}}%
    {\expandafter\renewcommand
     \expandafter*\csname NC@rewrite@#1\endcsname[#2][#3]{#4}}%
  \expandafter\regexpatchcmd\csname NC@rewrite@#1\endcsname
    {(.*)}{\c{@temptokena}\c{expandafter}\cB\{
           \c{the}\c{@temptokena} \1 \cE\} \c{NC@find}}
    {}{}%
}
\xnewcolumntype{N}[2][]{S[table-format=#2,#1]}
 
@egreg The same problem, before and after your edit.
 
shall i search for off topic questions ?
 
@Qrrbrbirlbel Here's the document
\documentclass{article}
\usepackage{siunitx,array,regexpatch,xparse}

\NewDocumentCommand{\xnewcolumntype}{mO{0}om}{%
  \newcolumntype{#1}{}
  \IfNoValueTF{#3}
    {\expandafter\renewcommand
     \expandafter*\csname NC@rewrite@#1\endcsname[#2]{#4}}%
    {\expandafter\renewcommand
     \expandafter*\csname NC@rewrite@#1\endcsname[#2][#3]{#4}}%
  \expandafter\regexpatchcmd\csname NC@rewrite@#1\endcsname
    {(.*)}{\c{@temptokena}\c{expandafter}\cB\{
           \c{the}\c{@temptokena} \1 \cE\} \c{NC@find}}
 
@egreg Well, of course: the keys are still braced in the third column. The problem arises when I remove them.
 
3:40 PM
is one of this answers worth an upvote ? tex.stackexchange.com/questions/104274/…
 
@Qrrbrbirlbel I see; there's something hairy in how S columns are defined. :(
 
@egreg You try finding a good way to grab optional keyval arguments with the array mechanism :-)
 
@JosephWright Is it ok when I search for unanswered questions?
 
@DominicMichaelis Of course
 
I upvoted the answer here i think it is right, but i am not sure if it is right tex.stackexchange.com/questions/102681/…
 
3:54 PM
@Qrrbrbirlbel I guess it's a problem with category codes. There's something that goes wrong with \meaning, I believe. There's a group-> that makes me very suspicious.
 
@egreg No, no. (I think.) The key group-separator is intercepted at the s (and siunitx definition is inserted) and then it becomes group-, the definition of s (>{something}c<{something}) and eparator.
 
@Qrrbrbirlbel Exactly: this is array scanning
 
@JosephWright I don't know if @egreg and I are talking about the same thing. I'm just repeating what we have just discussed …
 
@JosephWright: you do have an article of pgfplots, don't you? I can't find any links now. :)
 
4:06 PM
@JosephWright l3keys? :)
 
@Qrrbrbirlbel Yes, it's a big nuisance. :(
 
@egreg, @Joseph: I was thinking of us writing a jolly article for TugBoat with TeX pearls from this very chatroom. :)
 
@PauloCereda Written after the article
@PauloCereda I hope I got l3keys about right: pgfkeys is really an OO system, which is very clever but I suspect probably not the right fit for LaTeX3
 
@JosephWright :)
 
@PauloCereda I really would like feedback on this: Ulrike gave a bit around the time I wrote keys3 (now l3keys), but beyond that I've had not much to go on
 
4:12 PM
@JosephWright I'll try my best. :) I'm very fond of LaTeX3, now that I'm getting somehow the grip of it. :)
 
4:23 PM
@JosephWright What kind of feedback would you like? In my opinion l3keys fits in nicely with the other expl3 modules. I find the syntax to be very intuitive. I can't say I ever encountered any problems or missing features or whatever...
 
@cgnieder That's the sort of thing :-)
 
On top of the page slashdot.org/stories : "When TeX was first released, Jimmy Carter was president." (story link)
5
(Testing the server by self-slashdotting :-)
 
@PauloCereda don't forget youtube.com/watch?v=MLLMfWmiC0E :-)
 
4:38 PM
@Kurt Ah yes. :)
 
@StefanKottwitz Wow
@frankmittelbach See @StefanKottwitz's post
 
@JosephWright Beware, Slashdot is evil.
 
Does anyone know how to remove the page number from the chapter? Like the page number of the chapter?
 
4:55 PM
@gekkostate this depends on your document class you use. In such cases it is the best to create a complete MWE from \documentclass{... til \end{document} and show this.
 
@Kurt The MWE in this question tex.stackexchange.com/questions/107302/… If there is some issue with the createspace package then we can work around it by just suppressing the page number when the chapter begins. I have seen many books do this.
 
@gekkostate Your question tex.stackexchange.com/questions/107397/… isn't clear for me. Perhaps you can describe better what you want? It is hard to answer, if it is correct what you did ... Correct in which meaning? Hope you understand me.
 
@Kurt I wanted to have some confirm If what I have done with the geomtery package is inline with the createspace requirements.
@Kurt When I say "gutter" I mean to say "inside margin"
 
@gekkostate Well, then please do not only link to a page but write inside the question what you want. That makes it easier for all of us to answer and we have not to read some informations we do not know what you needs
 
@Kurt Sorry about that. I have updated the post.
 
5:03 PM
@gekkostate There is no need to say sorry. You are wellcome!
 
 
1 hour later…
6:30 PM
In general: Should I close this question, since there is no answers to accept? — Svend Tveskæg 52 secs ago
 
@texenthusiast I guess so or close TL or something
 
@DavidCarlisle Yes, in my view , Close it as it is not much useful for further visitors
 
@texenthusiast I voted
 
@DavidCarlisle Thanks
 
7:06 PM
Is there any policy about renaming question? Oftentimes the question title reflects the user problem and not the underlying TeX problem. (For example: The current title is “Plotting the frequency bandwidth”. Maybe one does not know what a frequency bandwidth is but maybe wants to do the same with another function. No wonder the search is so bad. I suggest a “Rename Questions” session …
There are so many question titles in my answer section which don't mean anything to me.
 
I think this question can be closed (TL), see last comment of @egreg:
19
Q: An old italian translation of The TeXbook

Jean BaldraqueDEK once said (TUGboat Volume 13 (1992), No. 4, page 423): The TeXbook has been translated not only into Japanese, but also into Italian (though not yet published in Italian). The people who did the translation are actually prisoners, political prisoners thrown into jail in the '70's becaus...

or an answer from egreg?
 
@Kurt That goes more into the not constructive direction.
 
Yes, also possible. Perhaps we wait for egreg?
I knew only the mentioned method in the comments as solution for writing steno in LaTeX. So closable as duplicate?
15
Q: Does anyone know if there is a LaTeX package for writing in steno?

user21296I am currently studying realtime stenography, and in making my own review materials, I have come to a point where it would be VERY useful to use LaTeX to typeset in the particular typographic style used in publishing stenography...does anyone know where I could find a LaTeX package or template th...

 
7:25 PM
@Kurt I don't know what Knuth received. Honestly, I've never heard about this other than there. I can exclude that those people, if they existed, were "liberal activists". More probably the right word would be "terrorists".
 
@egreg I'll check with Don's Editor at Addision-Wesley .. so leave it open for now
 
@egreg :-)
@FrankMittelbach Thanks
 
@Qrrbrbirlbel This Q needs a change of title as its vague without tex context. we should also leave OP his choice and may be suggest him to change title with comment and even leave a comment after change of title. because OP may reflect many newcomers mind set.
 
@texenthusiast It is one of many where I stumble upon when I look for a certain answer I gave and I’m always surprised what I have answered.
How can I store the content of a file (one line) in a macro? \edef\tmp{\input{...}}obviously does not work.
 
@Qrrbrbirlbel Yes you are right, may be we should leave a kind comment. because it's OP's material and choice. I can understand your point. Lets make a meta Q for renaming titles and see.
 
7:38 PM
@Qrrbrbirlbel \newread\myin \openin\myin \read\myin to \tmp
 
@DavidCarlisle Thanks, I need to study that sometime. Don't we have a good package for files, say xfiles?
 
@Qrrbrbirlbel or use \@@input (which is expandable) and put \ noexpand in `\everyeof to catch the end of file
@Qrrbrbirlbel oh of course there is by now a package (One of Heiko's: catchfile or some such) but where's the fun in that?
@Qrrbrbirlbel I even got the name right:-) abstract says : This package catches the contents of a file and puts it in a macro.
 
@Qrrbrbirlbel Package catchfile: \CatchFileDef{\tmp}{filename}{} or \CatchFileEdef{\tmp}{filename}{} (if you want to use \edef). The third argument is for temporary settings.
@DavidCarlisle For once you got first. :) Where's the fun? In looking at the definition of \CatchFileDef. ;-)
 
7:56 PM
@egreg @DavidCarlisle Thanks for now. I will take a look at all the options in a bit. :)
 
@PeterGrill "because it uses tikz"
Why "dirty solution"? You could just accept one parameter which is the coordinate to shift by: \begin{scope}[shift=#1], and call it via \halfadderplain{(A)}; where \coordinate (A) at (0,0);. — Peter Grill 2 mins ago
 
@DavidCarlisle We like it dirty. :)
 
8:17 PM
@Qrrbrbirlbel why is this NARQ ? It seems like a question to me. If you run patgen it (always) stops and asks for values with those names (@Kurt also)
0
Q: PatGen - what mean that values?

antonioWhat mean hyph_start, hyph_finish, pat_start, pat_finish, good weight, bad weight and threshold asked by PatGen?

 
@DavidCarlisle Because the closer either doesn't know what PatGen is or was trigger-happy in the Review tool.
 
yay....I solved the recurrence formula
[this totally was not worth it at all]
c_1((i i^n 2^(n-2) ((-1)^n-1) Gamma(1/4 (2 n-sqrt(17)+3)) Gamma(1/4 (2 n+sqrt(17)+3)))/(Gamma(1/4 (5-sqrt(17))) Gamma(1/4 (5+sqrt(17))) Gamma(n+1)))+c_2((i^n 2^(n-1) ((-1)^n+1) Gamma(1/4 (2 n-sqrt(17)+3)) Gamma(1/4 (2 n+sqrt(17)+3)))/(Gamma(1/4 (3-sqrt(17))) Gamma(1/4 (3+sqrt(17))) Gamma(n+1)))
T.T
 
@DavidCarlisle How can you run patgen? I do not know, the asker doesn't describe or makes it clear. So it could be everything... But if you think it is answerable we can vote for reopen, no problem.
 
@Kurt type patgen on the command line:-)
 
@DavidCarlisle I'm using a windows without cygwin (I knew you use it) and then I get: command not found ...
 
8:30 PM
@Kurt which tex distrrib? (it is a standard part of texlive, does miktex not include it?)
 
I'm using MiKTeX 2.9, updated a few days ago ...
So it seems that MiKTeX has not included it.
 
1
Q: Does Window's version of Tex contain patgen?

WarrenI know two window's version of Tex -- MiKTex and proTeXt. Do they contain patgen package? If not, what window's version of Tex contain the package? Can MikTex or proText import such package from Tex distribution? If yes, how to do it? If the package can be imported to Window's version, can you gi...

@Kurt still I think the question should be re-opened.
 
I learn every something new ... What could be the reason that patgen is not included in MiKTeX?
@DavidCarlisle Yes, I voted for reopen.
 
@Kurt Christian didn't know what it's about? ;-)
 
@Kurt thanks (not that I am planning anything other than cutting some text from the man page:-) patgen isn't the kind of program anyone asking questions should be using it analyses a collection of words and some metadata and makes a hyphenation table beginners are not normally setting up a completely new language for which no tex support exists....
@Kurt people who use windows shouldn't be trusted to use patgen:-)
 
8:39 PM
@egreg ;-) Perhaps I should ask him (just kidding...)
@DavidCarlisle LOL!
@DavidCarlisle I didn't need something like that. But interesting. Thanks for your hint!
There are mutch more differences between MiKTeX and TeXLive I thought.
 
Stackexchange needs a “minor edit” checkbox.
 
@Kurt I've used TeX for over 25 years and I think i only ever tried using patgen once (and failed to make a usable hyphenation file:-) So I don't think miktex users will be too worried that they don't have it...
 
What is the “official” name of patgen? PatGen or patgen?
 
@Qrrbrbirlbel patgen I think.
@Qrrbrbirlbel the man page only has lowercase form.
 
@DavidCarlisle Ok. While I adding the tag I can clean up a few of these posts.
 
8:51 PM
@Qrrbrbirlbel In the patgen.web file it is PATGEN ctan.org/tex-archive/obsolete/systems/knuth/unsupported/texware/…
 
@DavidCarlisle Well, I suppose there a lot of commands I do not know in both MiKTeX and TeXLive. A few days ago I installed TeXLive on an older Windows laptop to be able to find the difference. One command that does not run in both is bibexport :-(
I had to install cygwin to be able to use it ...
 
@egreg I won’t introduce it in all-uppercase, ugh.
 
Could this question be closed (TL; see last comment) or can somebody answer it?
8
Q: MultiMarkDown and biblatex citations

Gene G.I'm using Scrivener to produce LaTeX output with MultiMarkDown. MultiMarkDown uses natbib by default, so footnotes look like this code snips: \footnote{~\citep[<prenote>]{<key>}} The issue is that I need to use biblatex. I can get the footnotes and citations to parse by doing two things: (1) s...

BTW: Funny, Scrivener and LaTeX ...
 
00:00 - 21:0021:00 - 00:00

« first day (889 days earlier)      last day (4045 days later) »