« first day (897 days earlier)      last day (4034 days later) » 
00:00 - 21:0021:00 - 00:00

12:00 AM
!!/eightball does longtable have bugs?
 
@DavidCarlisle Psmith, the TeX bot: The great 8-ball says: ask again later.
@DavidCarlisle Psmith, the TeX bot: The great 8-ball says: concentrate and ask again.
@DavidCarlisle Psmith, the TeX bot: The great 8-ball says: it is certain.
Hey!
@DavidCarlisle Psmith, the TeX bot: The great 8-ball says: you need to use emacs.
!!/choose emacs, ice cream, vim
@PauloCereda Psmith, the TeX bot: The great oracle says: vim
Good boy.
 
!!/choose arara, dandelion, longtable
 
@DavidCarlisle Psmith, the TeX bot: The great oracle says: longtable
 
@DavidCarlisle Uh-oh. :)
!!/choose fncychap, a shotgun
@PauloCereda Psmith, the TeX bot: The great oracle says: fncychap
Uh-oh, egreg won't like this prediction. :)
 
12:50 AM
@egreg: tex.stackexchange.com/a/108649/3094 It's not fair, David just got Cambria because he has Word installed. :)
 
 
5 hours later…
5:41 AM
@Werner: Sorry. Is it correct to test whether or not the optional argument is a string "root" as follows?
\newcommand\Mark[3][root]{%
	\if#1=root\relax

	\else
	\fi
}
 
@Bugbusters No.
:)
 
@Werner Then the correct one is?
 
@Bugbusters Just give me a minute...
...I'll see if I can find a post mentioning that, or give you an alternative here.
 
@Werner OK. Thank you in advance.
 
@Bugbusters Are you only passing plain text strings?
 
5:50 AM
@Werner Yes. For passing a node name only
 
\newcommand\Mark[3][root]{%
  \edef\@optarg{#1}%
  \def\@default@optarg{root}%
  \ifx\@optarg\@default@optarg
	  root supplied%
	\else
    root not supplied%
	\fi
}
It's a very simple attempt/approach.
You store the optional argument in a macro. You store the default optional argument in a macro.
Then you test equality of these using \ifx...\else...\fi.
I use \edef to capture the optional argument actually passed, since it could contain a macro itself. Here's a full MWE and output:
\documentclass{article}
\makeatletter
\newcommand\Mark[3][root]{%
  \edef\@optarg{#1}%
  \def\@default@optarg{root}%
  \ifx\@optarg\@default@optarg
	  root supplied%
	\else
    root not supplied%
	\fi
}
\makeatother
\begin{document}
\Mark[]{a}{b} \par
\Mark[root]{a}{b} \par
\Mark[Root]{a}{b} \par
\def\myword{root}
\Mark[\myword]{a}{b} \par
\end{document}
Of course, there are other ways. Consider reading this post:
41
Q: Different command definitions with and without optional argument

Juan A. NavarroI want to define a command that expands to two completely different things depending on whether I supply, or not, an optional argument. For example, \mycmd{normal} -> something(normal) \mycmd[optional]{normal} -> anotherthing(normal, optional) How can I do this?

 
@Werner: OK. Thank you very very much for answering.
 
leo
6:22 AM
@cgnieder I have read the manual. It is no clear to me how the \NewQuSolPair work because I dont know know what the question options and general options are. The code you gave me to avoid numbers in the solutions headings was:
\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 } }
@cgnieder thanks
 
 
2 hours later…
8:39 AM
@HarishKumar Well, you were first. Feel free to add anything from my answer to yours.
 
8:58 AM
@leo You don't need the part between \ExplSyntaxOn and \ExplSyntaxOff any more. You still need to declare the instance and renew the standard environments with \RenewQuSolPair
@leo exsheets has options specific to the question environment (like type, or ID), options specific the solution environment (name and print) and options that determine some general behaviour (like headings). \NewQuSolPair and RenewQuSolPair allow to preset most of them.
 
@JosephWright thanks:-)
 
9:16 AM
It's certainly possible to write class files with macros for introducing number chapter, sections etc. that do not make use of \thechapter, \thesection to typeset the numbers (so stopping numbering from being configured in the usual way). But are there any class files in use that are annoying in this way?
(My question comes from commenting on whether a question should be closed)
0
Q: Customize section numbering from Springer templates

Nguyễn Duy KhánhI really like the style of Springer book (which is available here), so I decided to customize it for my own book. In that template, the section in chapter is labelled as : 1.1 (1st section in chapter 1), x.y(xth section in chapter y). I want to change numbering the section in each chapter by a...

 
I'm sure this must have been asked already, so can somone point me to the appropriate documentation? I have two tables in a document, and they are showing as Table 1 and 2, of course. But I want them to be Table 5 and Table 6. So, how can I hardwire these numbers in?
 
@CharlesStewart I should think it's generally applicable (but hard to believe it isn't a duplicate) although normally if changing from 1.1 numbering to 1 you also want \removefromreset so that the numbering doesn't start from 1 again every chapter, but in this case the OP said that is what he did want.
 
@FaheemMitha Have a look at: en.wikibooks.org/wiki/LaTeX/Counters
 
@FaheemMitha \setcounter{table}{4} before the first table so they get 5 and 6
 
9:28 AM
@Silex Thanks.
@DavidCarlisle Thanks David. That should work. If I want to go from 5 to 7 say, how do I increment?
 
@Silex reading documentation? that will never catch on
@FaheemMitha set it to 4 before the first and 6 before the second
 
Ok, I guess I can just use stepcounter
@DavidCarlisle Ah, ok. I guess I can do that instead.
 
@FaheemMitha or that.
 
@DavidCarlisle xD
 
I'm having to do a lot of extra work here because the silly publisher insists on using freaking Word. Why can't people see the light? I thought Springer was supposed to know about LaTeX...
Tons of minor formatting screwups.
 
9:32 AM
@TorbjørnT. Thanks. :-) Have a nice day.
 
9:49 AM
@PauloCereda You don't need Word, just Windows (7 or above)
 
10:06 AM
can be closed as dup (see OP comment) : tex.stackexchange.com/questions/108810/…
 
10:16 AM
@DavidCarlisle Closed :-)
 
@FaheemMitha They are even founding member of DANTE, the German language TeX users group
 
@topskip For instance, their classes set \clubpenalty10000 but not \@clubpenalty10000 :(
2
 
@DavidCarlisle Oh my bad. :)
 
Successful weekend :-) got minted working in miktex, assembled a self installing winedt macro for cmhughess' indent (for winedt 7) and above all set up context working alongside miktex (windows 7) using winedt 7 as the editor.
 
@egreg what is \@clubpenalty? - A LaTeX thing?
 
10:23 AM
Next step: Learn context.
 
(\@clubpenalty) I've found it in source2e.
 
@topskip It's the value to which \clubpenalty is restored after it's modified by \@afterheading. If you don't set it, you get the default 150 after the first section title.
 
@egreg OK. But I have never seen this documented outside of source2e
That means the advice given in tex.ac.uk/cgi-bin/texfaq2html?label=widows for example is incorrect?
 
@topskip lots of things are only documented there, that's why it's the documented source:-)
 
But I see now that \@clubpenalty is set to \clubpenalty at the beginning of the document (if I read the source right)
 
10:30 AM
@topskip yes
 
So then setting \clubpenalty in the preamble or in sty/cls seems to be safe?!?!
(unless doing something like \AfterBeginDocument{\clubpenalty1111})
 
@topskip You could star egreg's comment to keep it on display as long as possible to embarrass him
3
 
Why is it not compilable?
\documentclass[twocolumn]{article}
\usepackage[a4paper,margin=1cm]{geometry}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
    \item The degree of (C) is 3.
    \item The degree of (A) is 1.
    \item
    $\!
    \begin{aligned}[t]
		\begin{split}
      -3x(x+1)&-2x(x-1)\\
              &+4(x^2-3x-1)
		\end{split}	&\\
								&=\begin{split}
										&-3x^2-3x-2x^2+2x+v \\
										&+4x^2-12x-4
									\end{split}\\
								&=\begin{split}
										&-3x^2 -3x-2x^2+2x+v \\
										&+4x^2-12x-4
 
@DavidCarlisle Thanks
 
@topskip Luck. There was at least one .ldf file for babel that set \clubpenalty but not \@clubpenalty. Since this setting is performed at \begin{document} as part of \selectlanguage, it comes after the one performed by default. Guess what? :)
 
10:34 AM
@egreg who needs other languages besides english?
 
@Bugbusters using aligned in inline math seems a little brave. I haven't traced exactly what it is doing but if you use that aligned in display math you get a more constructive message:
Package amsmath Warning: Cannot use `split' here;
(amsmath)                trying to recover with `aligned' on input line 10.


Package amsmath Warning: Cannot use `split' here;
(amsmath)                trying to recover with `aligned' on input line 14.


Package amsmath Warning: Cannot use `split' here;
(amsmath)                trying to recover with `aligned' on input line 18.
 
@Bugbusters Because split can't go in aligned, I guess. Use aligned
 
@topskip Americans apparently.
 
@egreg and @DavidCarlisle: OK. Thank you!
 
10:53 AM
@topskip Shame on them. And it seems they even outsource their typesetting to India now.
 
@FaheemMitha Why not?
 
@topskip Why shouldn't they outsource to India?
 
@FaheemMitha No, I mean what's wrong with outsourcing this to India?
 
@topskip: Mr. Gundla. <3
 
@topskip Right, that is what I said (or meant to say). Basically, because Indians aren't good at technical stuff, in my experience. Though I admit I've not had good experiences with publisher typsetting in other places. Most of the typesetting people I've dealt with have seemed a bit half-witted.
If I had a choice, I would not consider using a typesetter who was not proficient at TeX. At a minimum, it would show good taste.
 
11:10 AM
!!/song
@PauloCereda Psmith, the TeX bot: Paulo is listening to Enter Sandman, from Metallica.
 
Faheem is listening to "Nothing Else Matters" by Metallica.
:-)
 
@FaheemMitha :)
!!/song
@PauloCereda Psmith, the TeX bot: Paulo is listening to I don't like mondays, from Boomtown Rats.
@topskip: ^^ :)
!!/eightball Is @DavidCarlisle already a Lua expert?
@PauloCereda Psmith, the TeX bot: The great 8-ball says: yes, definitely.
oooh.
Tony Stark of the TeX world. :)
Maria Hill: When did you become an expert in thermonuclear astrophysics?
Tony Stark: Last night.
 
11:26 AM
Someone has been watching the Avengers movie.
 
@PauloCereda If you look at my linkedin page you see I'm endorsed (so presumably an expert?) in lots of languages, some of which I've never seen. (does anyone understand linkedin?-)
 
@DavidCarlisle Linkedin is dubious. I get spam from them.
People I've never heard of wanting to join my network.
 
@DavidCarlisle ooh! :)
 
kan
11:55 AM
I am back after an internet connection outage for a day.
Good evening friends!
 
@kan Hello! Welcome back. :)
 
kan
12:14 PM
Just read something depressing on this chat:
"Basically, because Indians aren't good at technical stuff, in my experience." And, I beg to difffer.
Well, sorry about that. I had to say it.
 
@kan I think we all know that generalization is nonsense.
 
kan
Let's talk about some TeX doubts I had when I was offline!!!
 
!!/fortune
@PauloCereda Psmith, the TeX bot: Here is your fortune: The end is near. And it's all your fault.
 
kan
12:32 PM
OK , Q1: How do I typeset of couple of equations adjacent to a tikzpicture?
I'll post this on the main, I guess. With an MWE.
 
@kan I'd put the equations in a box (\parbox or minipage) next to the tikzpicture.
 
kan
Hah, I tried that:
Shall I show you what have I got?
 
@kan Okay. (My computer's running very slowly as I'm trying to process a giant image file, so my connection may drop.)
 
!!/song
@PauloCereda Psmith, the TeX bot: Paulo is listening to I saved the world today, from Eurythmics.
 
kan
@NicolaTalbot Don't worry! I am quite OK. I'll put it in anyway and hope that all goes OK:)
 
12:38 PM
@kan Beware of @DavidCarlisle and his picture mode. :)
 
kan
:)
 
Oh no, my image file is so big it's made gimp crash!
 
@NicolaTalbot Oh no!
 
kan
\documentclass{amsart}
\usepackage{tikz}
\begin{document}
\[
  \begin{array}{lp{\linewidth}]
  \begin{tikzpicture}[xscale=0.4,yscale=-0.3]
    \node (A0_2) at (2, 0) {$E$};
    \node (A3_2) at (2, 3) {$B$};
    \node (A4_0) at (0, 4) {$E'$};
    \node (A6_2) at (2, 6) {$F$};
    \path (A6_2) edge [-]node [auto] {$\scriptstyle{}$} (A4_0);
    \path (A3_2) edge [-]node [auto] {$\scriptstyle{}$} (A0_2);
    \path (A4_0) edge [-]node [auto] {$\scriptstyle{}$} (A0_2);
    \path (A6_2) edge [-]node [auto] {$\scriptstyle{}$} (A3_2);
 
@PauloCereda I had the duck backdrops scanned in today. The scanning shop had to use 2 CDs as the 6 images wouldn't fit onto 1!
 
12:40 PM
@NicolaTalbot Wow!
 
I think I might have been a bit ambitious with this book design!
 
@NicolaTalbot We can have a duck exhibition. :)
 
@PauloCereda Yay :-)
@kan The align environment isn't supposed to go inside a display math mode. I usually do that kind of thing like this:
\documentclass{amsart}
\usepackage{tikz}
\begin{document}
  \begin{tikzpicture}[baseline=(current bounding box.east),xscale=0.4,yscale=-0.3]
    \node (A0_2) at (2, 0) {$E$};
    \node (A3_2) at (2, 3) {$B$};
    \node (A4_0) at (0, 4) {$E'$};
    \node (A6_2) at (2, 6) {$F$};
    \path (A6_2) edge [-]node [auto] {$\scriptstyle{}$} (A4_0);
    \path (A3_2) edge [-]node [auto] {$\scriptstyle{}$} (A0_2);
    \path (A4_0) edge [-]node [auto] {$\scriptstyle{}$} (A0_2);
    \path (A6_2) edge [-]node [auto] {$\scriptstyle{}$} (A3_2);
 
kan
@NicolaTalbot Thanks for the help so much.
I was trying to get some idea about how I'd tackle and that is what I could guess. But, I need to learn minipage syntax. Could you give me pointers to something about it (you may have written too, so, your own write up is OK too.)
 
@kan I've got a short section on boxes and minipages if that's of any help.
 
12:58 PM
12
Q: Image next to Equation

David WrightI am trying to make my first LaTeX file and have been reading syntax for a bit and have not been able to figure one thing out yet and don't seem to find anything about it online so I thought I might just ask:) How is it possible to place an image next to an equation? I tried to do it by wrappin...

Doesn't mention minipages though.
 
kan
@NicolaTalbot Thanks for the pointer.
Now, that I read the message I wrote for you, it reads terrible. Hope you could make out what I wanted to say: I was trying to guess how I'd accomplish and array was what I could guess but, did not work. But, I should learn minipage syntax [...]
@TorbjørnT. Thanks for the link... I'll look through.
@TorbjørnT. Perhaps, @Nicola should add it.
@TorbjørnT. Thanks for the link... I'll look through.
Crazy internet connection.
 
1:14 PM
I'm going to have to quit all non-essential applications. Note to self: never again try such an elaborate book design. Bye for now.
 
1:59 PM
@NicolaTalbot get more RAM ;-)
 
2:15 PM
!!/fortune
@PauloCereda Psmith, the TeX bot: Here is your fortune: Do not mistake temptation for opportunity.
 
Internally, which one is used for the tabular specifier p? minipage or parbox?
 
2:59 PM
@kan That would be me. And I stand by the statement. And I'm Indian, so I think I know something about it. I should be more precise and say that I had in mind e.g. Indian software engineers. However, don't really want to have an argument/discussion about it.
 
3:19 PM
@Bugbusters Neither but it is more or less like \parbox[t]
 
@DavidCarlisle OK. Thank you!
 
!!/eightball Am I crazy?
@PauloCereda Psmith, the TeX bot: The great 8-ball says: how about reading source2e?
 
3:49 PM
oooh Despicable Me 2 in July!
 
4:13 PM
@DavidCarlisle Hello. Can you tell me, how to define and use basic data structures in expl3? arrays, key => value pairs
I learned, how to use for loops yesterday. How can I define an array of values: "val1", "val2", ..., "val_n" and traverse through them?
 
@egereg whats the best way to typeset the symmetric difference ?
 
@DominicMichaelis Somebody uses \bigtriangleup
 
and for the spacing? how do i get the binary spacing ?
 
@DominicMichaelis Actually + would be more sensible, but it's not used in this context.
@DominicMichaelis It's defined as a binary operator.
!!/texdef -t latex bigtriangleup
 
Psmith, the TeX bot, in fixed font mode: Here's the output from texdef:

\bigtriangleup:
\mathchar"2234


\the\bigtriangleup:
8756
 
4:20 PM
@DominicMichaelis You see from Psmith's output that it's a binary operator (leftmost digit is 2).
 
oh thanks :)
 
@DominicMichaelis Or look in symbols-a4.pdf (texdoc symbols)
 
i used \triangle at first but it has bad spacing
 
@DominicMichaelis You can turn any symbol into a binary operation: \mathbin{\triangle}
 
@egreg sorry, don't you know, how to define and use arrays and hashes in expl3?
 
4:23 PM
@user4035 Joseph gave an example here (I'd have to look up the current version syntax as I've not really used the latex3 syntax since before latex2e came out:-)
23 hours ago, by Joseph Wright
\int_step_inline:nnnn { 1 } { 1 } { 15 } { <code> }
 
I used it
this is a for loop
 
@user4035 as we explained yesterday you are using terminoligy from other languages, you want to look up sequences and property lists
 
I wanted to define an sequence: ("var_1", "var_2", ..., "var_n")
and print it
sequence = ("var_1", "var_2", "var_3")
n = number_of_elements_in_sequence(sequence)
\int_step_inline:nnnn { 1 } { 1 } { n }
{
sequence[#1]
}
something like this
it will print:

var_1var_2var_3
 
@user4035 No you don't want to index into an array you just want to iterate over the sequence (most likely) there's probably someone here who's used this more recently than 1990 who can give the syntax without having to look it up:-)
 
Yes. Iterating through the sequence is what this code does.
 
4:30 PM
Check l3seq in interface3, most stuff is covered there. :)
 
@PauloCereda any docs plz?
googled this: "l3seq interface3"
no success
 
@user4035 Sure! texdoc interface3 in your terminal. :)
 
@user4035 Sequences are the solution here.
\seq_new:N \l_egreg_variables_seq
\seq_put_right:Nn \l_egreg_variables_seq {var\_1}
\seq_put_right:Nn \l_egreg_variables_seq {var\_2}
\seq_put_right:Nn \l_egreg_variables_seq {var\_3}
\seq_use:Nnnn \l_egreg_variables_seq {}{}{}
 
@user4035 Yes. :)
 
4:37 PM
@PauloCereda thx
 
@user4035 egreg just gave a seq version and here is a clist version:
\documentclass{article}
\usepackage{expl3}
\usepackage{l3clist}

\ExplSyntaxOn
\clist_new:N\l_my_clist
\clist_put_left:Nn \l_my_clist {var1,var2,var3}

%\ExplSyntaxOff

\begin{document}

\clist_map_function:NN\l_my_clist \fbox

\end{document}
 
@user4035 Or a simple clist would to the job as weel. Maybe this helps: tex.stackexchange.com/questions/44295/…
@DavidCarlisle As always you are too fast ;-)
 
@DavidCarlisle ooh you wrote an L3 code! :)
 
@user4035 the above defines a command separated list them maps the \fbox function over it so you get three boxes. (First L3 code I've written this millenium:-)
 
@PauloCereda I have thought the same
 
4:39 PM
trying to compile now
 
@user4035 There is also
\seq_new:N \l_egreg_variables_seq
\seq_set_from_clist:Nn {var\_1,\var\_2,\var\_3}
\seq_use:Nnnn \l_egreg_variables_seq {}{}{}
The difference is that \seq_use:Nnnn is expandable, while \clist_map_function:NN isn't (completely).
@PauloCereda Next we'll have longtable3
 
@egreg ooh that would be awesome. :)
@egreg: I suspect David will make the code only throw an error complaining that the l3kernel is always too old to be used with longtable3. :)
 
@egreg \seq_use:Nnnn \l_egreg_variables_seq { ~ }{ ~ }{ ~ }
this printed variables, separated by space
 
5:01 PM
@egreg This code doesn't work: \seq_set_from_clist:Nn \l_egreg_variables_seq {var_1,\var_2,\var_3}
Everything else is ok
 
@StefanKottwitz thank your grandma for the badge:-)
 
\clist_new:N\l_my_clist
\clist_put_left:Nn \l_my_clist {var\_1,var\_2,var\_!3}

\seq_set_from_clist:Nn \l_egreg_variables_seq \l_my_clist
This mixture of David Carlisles code & yours works
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\seq_new:N \l_egreg_variables_seq
\clist_new:N\l_my_clist
\clist_put_left:Nn \l_my_clist {var\_1,var\_2,var\_!3}

\seq_set_from_clist:Nn \l_egreg_variables_seq \l_my_clist
\seq_use:Nnnn \l_egreg_variables_seq { ~ }{ ~ }{ ~ }
\ExplSyntaxOff
\end{document}
prints: var_1,var_2,var_!3
Oh, seems, I did something wrong
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\seq_new:N \l_egreg_variables_seq
\seq_set_from_clist:Nn \l_egreg_variables_seq {var\_1,var\_2,var\_!3}
\seq_use:Nnnn \l_egreg_variables_seq { ~ }{ ~ }{ ~ }
\ExplSyntaxOff
\end{document}
This works as well
 
@DavidCarlisle Hey I want one too!
Stefan did that on purpose, of course. :)
!!/eightball Will I get one gold badge from Stefan's question?
@PauloCereda Psmith, the TeX bot: The great 8-ball says: my sources say no.
Oh.
 
5:23 PM
@PauloCereda Indeed, now I see: only the highest scoring answer gets it, even if the other ones highly outscore an accepted answer too.
@PauloCereda Just 57 additional votes and you'll get it too.
 
Which one is recommended?
\documentclass{article}
\usepackage[a5paper,margin=2cm]{geometry}
\usepackage{amsmath}
\begin{document}
\begin{align}
y &= mx + c 				&&\text{line}\\
	&= ax^2 + bx +	c &&\text{quadratic}
\end{align}

\begin{align}
y &= mx + c 				&\text{line}&\\
	&= ax^2 + bx +	c &\text{quadratic}&
\end{align}

\end{document}
 
5:39 PM
@egreg Why doesn't expl3 differ these functions:
\cs_new:Npn \mult_1 (#1, #2)
\cs_new:Npn \mult_2 (#1, #2)
doesn't compile
\cs_new:Npn \mult_a (#1, #2)
\cs_new:Npn \mult_b (#1, #2)
compiles correctly
The error is: "Control sequence \mult_ already defined."
 
@user4035 You can't use digits in function names.
@user4035 There were wrong backslashes. :(
\seq_set_from_clist:Nn \l_egreg_variables_seq {var_1,var_2,var_3}
 
ok
 
@egreg: after I fix all known bugs @David reported, would you like to help us test dandelion? :)
 
@PauloCereda If I can understand what it does. ;-)
 
@egreg We are still in that phase too. :)
@David became a Lua expert just to find moar bugz.
 
leo
6:20 PM
Why the updates from the CTAN take so long to be available in a MiKTeX distribution?
:-(
 
@leo There's only one person to do them
 
@leo see this to understand
 
leo
I see
 
 
1 hour later…
7:36 PM
!!/fortune
@PauloCereda Psmith, the TeX bot: Here is your fortune: Run.
woohoo new smartphone arrived!
 
7:54 PM
@egreg it's supposed to find bugs in @JosephWright's latex code
@PauloCereda all you have to do is get more votes than me for that question.
@PauloCereda ios?
 
@DavidCarlisle No way. :)
@DavidCarlisle Surprisingly, no. :) My first Android phone. :)
 
@PauloCereda I thought you were an apple devotee these days
 
@DavidCarlisle I'm eclectic. :)
 
@PauloCereda well get emacs and the hackers keyboard and you won't need any other apps
 
@DavidCarlisle I have Vim in my iPad. :)
@David: I almost got a Galaxy for me, but only very old models are available around here.
 
8:10 PM
hi, anybody knows if it is possible to draw ONLY arrow head?
 
@doctorate TikZ, PSTricks, Asymptote, Metapost?
 
Tikz, i want the latex'-latex' new in tex.stackexchange.com/questions/5461/…
83
Q: Is it possible to change the size of an arrowhead in TikZ/PGF?

yegor256I'm trying to draw an arrow with a bigger head than normal. Is it possible without changing the style of the line itself?

 
@doctorate Well, you can cheat by drawing a very short line, e.g. \draw [-latex] (0,0) -- +(0.01,0);
@doctorate Won't work if there's an arrow on either side of the line, of course.
 
how to increase size?
 
@doctorate Do what is says in the question you linked to just now? (I haven't looked at it yet, will do now.)
 
8:20 PM
\draw [-latex,line width=8pt] (0,0) -- +(0.01,0);
is not what I wanted, i wanted only the arrowhead without the line
 
@doctorate You could load \usepgfplotslibrary{decorations.markings} and then use \path [decoration={markings, mark=at position 1 with {\arrow[scale=2]{latex}}}, decorate] (0,0);
 
@Jake Yep, that was a better way.
 
@Jake it didn't work, are you sure of the code?
 
There is a related question by the way, that I just found: tex.stackexchange.com/questions/1260/…
 
@doctorate Yes. What do you mean with "didn't work"?
@TorbjørnT. Ah yes, good find!
@doctorate Ah, sorry, \usetikzlibrary{markings}
 
8:33 PM
@Jake undefined path control error
@Jake Undefined control sequence \path
@Jake Undefined control sequence ...{markings, mark=at position 1 with {\arrow
 
@doctorate \usetikzlibrary{decorations.markings} maybe?
 
@percusse Oh man, it's too late. Yes, you're right!
 
@Jake :-) PhD is working I see
 
@percusse Hehe, yup.
 
@Jake yes, now works
@Jake can I rotate the arrow head?
 
8:39 PM
@doctorate Yes, add ,rotate=35 after scale=2
 
\path [decoration={markings, mark=at position 1 with {\arrow[scale=5,rotate=90]{latex'}}}, decorate] (0,0);
@Jake works fine, thanks a lot
 
@egreg: good game. :)
It's been a long time since I last asked: @egreg: did you reach rep cap? :)
 
@PauloCereda Yes. Not the second half, but who cares?
 
@egreg :)
 
@PauloCereda I don't know :P
 
8:50 PM
Is it possible, to set a local variable in function and return something from it?
function fun($a, $b)
{
$sum = $a + $b;
return $sum;
}
something like this?
\cs_new:Npn \sum_elements (#1, #2)
{
\def \sum{\int_eval:n {#1 + #2}}
\sum
}
this just prints the value of \sum
 
@user4035 That's just \cs_new_protected:Npn \sum_elements:nn { \tl_set:Nx \sum { \int_eval:n { ( #1 ) + ( #2 ) } }
 
Hi. Can anyone tell me how to find what counter the listings package uses?
 
@JosephWright This compiles and prints 5:

\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\cs_new_protected:Npn \sum_elements:nn (#1, #2)
{
\tl_set:Nx \sum
{
\int_eval:n {#1 + #2}
}
}

\sum_elements:nn(2, 3)
\ExplSyntaxOff
\end{document}
Is it possible to return the value from the function & print it in the calling code?
 
00:00 - 21:0021:00 - 00:00

« first day (897 days earlier)      last day (4034 days later) »