I have basic question on tickz. I read it uses pt for units. So when I write this:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw [<->] (12,0) -- (0,0) --(0,12);
\end{tikzpicture}
\end{document}
Then the length of the lines should be 12pt? But then I read that in Latex a pt is 0.013 inch. So the above will make a line that is 0.165inch. But when compiling the above, I see it extend to almost the full page width. Which is about 8 inch in physical size. So I am confused.
..I think the default units are cm, not pt. I did read pt somewhere, but lost the link now. ok, I am set.
@PaulGessler: Well, actually, the house is already built -- my parental home, a typical German house with t wo floors and a huge attic... My father wants to give the house into my custody, but there is no place for me to live in, so I want to reconstruct the attic -- and German Law requires an architect for this :-(
So, I am off again... the architect will be here in a few minutes
@egreg That's what I thought, but I've checked the official position
@egreg Essentially, there is no support in the BIPM docs or similar for using a space other than a 'standard' one. The user may decide that they wish to emphasise the link between the number and unit by using a thin space, but I can't have that as the standard setting without some official justification.
@JosephWright I think it would be a good idea to adress the list directly, there are some others active, including Werner Lemberg, Herbert Voß and Stephan Hennig.
@JosephWright Having precompiled regexes can come handy. Consider a case where one needs to check whether an argument is a <factor> according to TeX syntax.
@JosephWright I havent't read your post, but the comments. I still think this is relevant for the list as they are discussing things like case changing as well.
@egreg In a sense no, but a tl is simply an unstructured holder for 'stuff'. The problem is there are loads of special case data types, and if you say each one needs to be fully defined you need a lot of function names, etc.
@JosephWright Additional packages may define their own data types.
@JosephWright Bruno has shown functions to deal with array manipulations; a package out of them would define the array data type.
@JosephWright Also a sequence is a tl, after all. Defining a data type for them hides the implementation details. And defining new data types is very common in programming languages for that precise reason.
Here is some code to manipulate matrices of any size. Currently, it can perform additions, subtractions, and multiplication (as well as fetching individual entries, and transposing a matrix, for instance). Entries are floating points that l3fp supports (16 digits of precision).
% Programming-l...
@percusse the nag library can use either a system blas/lapack (eg acml or mkl) or its own implementation although actually in the matlab version we use the same blas/lapack as matlab does (otherwise you get symbol clashes) and don't expose the blas interfaces (as they don't really add anything in matlab) (Some of the original blas and lapack work was done here)
@egreg What I'm trying to get at is there are lots of cases where you need a piece of data in a particular form, but deciding if they are different data types is not so easy. The str case is probably more tricky: do we need str to cover what e.g.\edef\foo{\detokenize{bar}} produces?
@egreg Reasonable position. It comes down to whether you feel that a function which requires a string-like tl therefore needs a separate data type or not. I don't (it's too open-ended).
@egreg I'm feeling better, thanks. :) Yesterday was quite complicated, I had to lay down because my back was hurting. Now it seems the flu is in the final stage.
I used \cellcolor{} to fill the cell of my table. However, the black borders of the cell disappears. The tex viewer shows borders, but I don't see the borders when I open as a pdf. Can you help me about it?
Thanks.
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|c|c|}
\hline \backslash...
There's a great TEDxExeter talk by a colleague of mine, Simon Peyton-Jones, about the recent advances in the English lower school 'computer science' curriculum: http://youtu.be/Ia55clAtdMs Like all of his slide decks he uses Comic Sans throughout. Depressingly, though inevitably, one of the YouTu...
@eiterorm That's interesting! Could you please tell me what \rightarrow, \longrightarrow and \shortrightarrow are used for in group theory (and one author that does so), please?
@moose I don't know much about it, I'm afraid, hence the rather vague answer. On different math forums and in other online articles, I've seen e.g. \rightarrow used in place of \mapsto.
Ok, I know that \rightarrow and \mapsto are used different. But I rather wanted to know if \rightarrow, \longrightarrow and \shortrightarrow are used different. So the question was if the length of the arrow contains information or if it is just used when people think it looks better.
@moose: I am not into university any longer, but I remember, that 10 mathematicians/physicists etc. use 10^2 different notations .... there might be typographical aspects, what should be better in this or in that case, but it's often a matter of taste. Somehow annoying, somehow it's nice, since there is still some free will ;-) (Ok, there might be real weird example, but @egreg will show them the typographical rules ;-) )
@egreg: I silly question of mine, perhaps I could/should look into the questions on TeX.SX! Is there a Plain TeX \if... command in order to test, whether a macro, say \somemacro already exists? I don't mean etoolbox etc. commands of course?
@JosephWright: Perhaps my naming was misleading, sorry -- of course, I meant TeX as shipped out with TeXLive/MikTeX. It's e-TeX then, or am I completely errant? I am quite happy with e-TeX ;-)
@ChristianHupfer TeX systems today ship with tex, pdftex, xetex and luatex. The first is Knuth's TeX unchanged: the other three have the extensions. pdftex the binary is used as the default engine, in DVI mode to implement e.g.latex and in PDF mode for e.g.pdflatex.
@ChristianHupfer Extensions are enabled by default for all engines bar tex
@ChristianHupfer Those of us who build formats from time to time might have to do pdftex -ini -etex :-)
There was a comment addressed to me, but the question was deleted. As i have so very low rep, can anybody tell me if there was anything important in the comment? -> tex.stackexchange.com/questions/199657/…
This was the comment @Johannes_B, seems to be a better alternative in KOMA script there. It is very interesting if you could upgrade your comment to an answer though.
@Johannes_B: I must admit, that I am responsible for that chapterthumb questions -- somewhat, but the whole thing was blown up by requests of the OP to turn a screw there and another one there...
@Johannes_B: Well, that .sty is not meant to be extended really. The original code by me did not look like it was posted by the OP today... he made a lot of statements inside it.
@Johannes_B: Well, yes, on occasion -- as I said -- I had to abuse chapterthumb.sty to fulfill the OP's requests, but anything after that is not in my responsibility :D
Something i noticed: There are many questions on bibliographies (and changing their visual appearance) in german. Opposed to it, there often arises the question in english-speaking places, why picture appear where the smurf they want.
@Johannes_B: I am not sure whether the is designed for direct usage at all... Doxygen is a doc generator for html/tex mainly, documenting C/C++/Java(?) and Qt - Code
@ChristianHupfer If i remember a username it's one that got my intention. There are only two ways to do that, being good nice and funny; or beeing stubborn and uneinsichtig.
@ChristianHupfer He never replied to my request for information.
@Johannes_B: But we don't have a cat so far... We are living at a street with much traffic and not much garden and green yards, not a good place for a cat (or any other animal)... or a human Landei :D
What would the expl3 approach to that? Assuming we have available the \toks_set:Nn, \toks_use:N etc. and family (functions to set toks, and also variants wit h :o:x etc.).
@DavidCarlisle I know. I had to search in the web, to obtain a .dtx which I don't know how it works, and then search google to obtain a .sty file from 2011. However, most of the work can be done with token lists (macros), but still there are sometimes where toks might be useful.
@DavidCarlisle If you want to save #1 in a token list you need ##1, or is there a way?
@Manuel There's no function for manipulating token registers. You say \tl_set:Nn \l_tmpa_tl {#1} and, if you don't need it expanded more than once you use, for instance, \exp_not:V \l_tmpa_tl
@egreg It took a while to process to my mind, but now it's (almost) fully translated to expl3 and is more understandable. Just grabing tokens one by one, in case you enter a group do something extra until you end that group, and keep going until you find something that means exactly the defined delimiter you are looking for.
@StefanKottwitz I just read the outline in more detail. I have some remarks, and even one or two additions. I try to make them into real words tomorrow.
@Manuel We dropped it because you really don't need a public toks interface with e-TeX: this was not a snap decision
@Manuel The only place we use toks is some tricks by Bruno inside l3regex, and that is all done by number and inside a group
@Manuel \exp_args:NNV \endgroup \tmpbtoks \tmpatoks, which used to look like \exp_args:NNNo \group_end: \toks_set:Nn \l_tmpb_toks { \toks_use:N \l_tmpa_toks } (I don't think we had V-type expansion when we were still using the toks module).
@Manuel If we still had it, would be \exp_args:NNNV \group_end: \toks_set:Nn \l_tmpb_toks \l_tmpa_toks
@PauloCereda Unlikely
@Manuel That will work, assuming you are not inside another function
@Manuel \tl_set:Nn uses the trick @DavidCarlisle points out: this was something I pushed for, and in general I think it's worked out :-)
@Manuel Note that one reason for the V-type argument was originally that it allows both macro and toks based variables to be expanded without needing to know what the underlying implementation is
@JosephWright Okey. Thanks for the info (all of them).
@JosephWright Also in a hopefully to come environment declaration like environ command, isn't it?
@JosephWright However I'm not sure, but you need to expand also the \tmpbtoks, does \exp_args:NVV work? Yes, you did have V at least in the l3toks.dtx file in GitHub.
@JosephWright The question was meant: \exp_args:NVV works? Or do I need somehow to expand first the \tmpatoks and then \tmpbtoks (which I don't know how to do in expl3). I'm not sure what I'm up to, but the thing is that, before ending the group, I want to expand two token lists (or toks) with the second inside a group \endgroup\tmpb{\tmpa}. Then, close the group, leaving <contents of \tmpb>{<contents of \tmpa} and let the typesetting continue.
@Manuel \exp_args:NVV will expand the value of the two variables, leaving the results in braces in the input stream. Thus \exp_args:NVV \foo \tmpatoks \tmpbtoks becomes \foo { <content-of-tmpatoks } { <content-of-tmpbtoks }
@Manuel We've never (or at least extremely rarely) needed to do that: the much more common case is \endgroup \assignmentcmd \variable \stuff_to_assign_to_variable
Sometimes, when users improve a post through the review interface, they see a reasonably poor edit suggestion, improve it and leave it ticked because they've either forgotten to remove it, don't know what it does or can't be bothered to.
This can result in awarding reputation to suggested edits ...
@JosephWright Then I just thought… nested \exp_args or may be a tricky \exp_args:NV… \use:n? The problem is that \tmpbtoks and \tmpatoks may have whatever inside of them. It's not necessary an asignment, it's just adding braces around the second one and leaving it there. And both are just defined inside the group (that's why I need to expand them before closing the group).
@JosephWright This is getting too long and “breaking” the chat. Don't worry, I will investigate. Thank you.
The question gives me a sense if it is read from its end: give
the possibility of creating a macro which expands its parameter during
parameter scanning. Then the variants } or \egroup as a delimiter of the
parameter is serviceable.
I've created the \eparam macro with this syntax:
\def\mymacro ...
@JosephWright Crazy thing. With no use. I'm just trying to translate it into expl3 and trying to understand it.
@JosephWright All of it is more or less straightforward, really. \tl_map_function:NN, \token_if_expandable:NT, \token_if_space:NT, \token_if_group_begin:NT, \peek_after:Nw… and all of that divided in 8 or 9 auxiliar commands.
The only thing that I don't know how to do is that code I posted above, which seems a lot more TeX (all of those \expandafters) just with “expl3 names” (\exp_after:wN).
@JosephWright Would this work? \exp_args:NNVV \use:nn \group_end: \l_tmpb_toks \l_tmpa_toks
@JosephWright Or may be it's easier to expand inside the group and then use a \group_insert_after? I will think about it and probably post an answer to that question just translating that solution into expl3 (which is muuuch more readable for me).