Is 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...
@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?
@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...
@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.
@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...):
@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.
In 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...
@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
@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
@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 ?
@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.
@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:-)
@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 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.
I 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...
I'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...
@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 @
The 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 ...
I 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...
@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...
@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.
@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.
@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
@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.
@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
@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.
@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)
@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 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.
@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
@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...
@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.
@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
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.
DEK 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...
I 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...
@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".
@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.
@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.
@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. ;-)
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 Grill2 mins ago
@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.
I 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 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:-)
@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...
@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'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...