Any active linux users here ? I have a question in shell script. I am trying to run a script like this ./file1.sh input1 input2 (where input1 and input2 are some input arguments) and i am trying to echo a string mentioned in the beginning of the script. However I can't see it being printed out on terminal. why would this happen ?
that echo line gets skipped or for some reason doesn't get printed.
Say I have two coordinates in tikz, (A) = (xa,ya) and (B)=(xb,yb), what is the best way of getting (C) = (0,max(ya,yb)), when all I know is (A) and (B)?
@DavidCarlisle Comparing a complete ten page program (with commented source) with a six line shell script using tr, uniq, sort and sed is unfair. I'm quite sure that the commented source of those four programs would be a lot more than ten pages.
@egreg true but I once went to a talk where someone was showing the benefits of a three or four line expl3 program, without showing half a million lines of expl3 source....
@egreg also, I don't see why sed ${1}q is better than head -n $1. Certainly it's not clearer; other than that, the program is quite clear and the commented source would be still 6 lines, maybe 8
@yo' That just shows the advantage of a higher level interface over a low level one. And Knuth's program is “platform independent”, provided you have a Pascal compiler.
@egreg indeed; the code for sed is surely in thousands, very likely much more :)
@egreg I'm really happy with bash, to me all this fuss seems like "it's only because defaults are always bad". It's like with desktop managers: I truly hate G3, that's true, so I went back to MATE. Many people use this or that just because "it's cool to use something non-standard".
@egreg and don't take me wrong, I understand that some people prefer other shells, mostly people who do a lot of sheel scripting; but how many such people are there? I do quite some shell scripting, and I never needed anything else than what bash offers.
@yo' zsh has a lot of bells and whistles for the command line, at the expense of being very complicated in some aspects (defining new command completions, for instance). I don't think it eases scripting.
@UlrikeFischer I have a version of \newinsert planned that should remove the need to declare inserts early (as when the allocation runs out they can be taken from the float lists, and the float list increased using \extrafloats to compensate) that gives you 18 or so inserts (or 64000 in luatex) after the allocatation system has used all the classic registers) But for now, bigfoot not loading etex, and just loading it before the the registers are used up should work well.
@PauloCereda -- the latter: two-minute tutorial. (same as "the tutorial will take two minutes.") the plural indicator is (almost?) always removed when the expression becomes an adjective. (well, i can't think of any exceptions, at least not this early in the morning.)
@Johannes_B Naturally in your code the problem doesn't show as you have only one page ... (but as the OP has been told more than once to provide examples I will wait him out).
@Johannes_B Yes I would have stopped much earlier ;-). Btw can be done something about all this icons before links in golatex posts? They are driving me mad. I don't want colored pictures everywhere in a text.
@barbarabeeton Once you kill the LaTeX process, you get the aux file cut in a completely random place (mostly depending on the typical caching of writing to files in your system). It's possible that the true problem is \alhpa instead of \alpha 2 pages after the section title that produced this \contentsline
@yo' -- agreed, but why is it reported in the screen shot that the .aux file was read successfully (followed by closing parenthesis)? if the error was in the reading of the .aux file, then it should still be open, no?
@UlrikeFischer That's a package symbol. I decided to insert small icons at links to packages or documentation (small book icon), because a big portion of the users don't seem to understand links. I preferred a small icon to, what I saw very often before: "link (<- this is a link you can click!)" and similar, frequently used by some people.
@UlrikeFischer It's programmed, so I can change it at any time when there's another idea of clearly stating there's something special you can click on (not just emphasized). This may also be seen with an information sign at the common MWE link somewhere, so newbies know there is information.
@StefanKottwitz What i don't understand is in our time of internet access in busses and restrooms, how can users that basically had internet access their whole life don't know what a link is.
@StefanKottwitz Yes, I know what symbol it is for (I also checked the source code), but it is driving me really mad. My eyes jump from icon to icon. I understand that you want to show a link, but why must it shout so loud? Colored bold links with large icons. That's like the people who make every third word bold to show that it is important. On my website I use triangles - and I do find them a bit too intrusive too.
@yo' What bothers me most, is that one group attacks the other. The guys wanting to help refugees (verbally) attack the opponents (and even the press).
@Johannes_B that's fortunately not that bad here. People supporting "calm discussion about the problem" so far manage to stay calm. There's an academic petition asking basically for calm, no populism and true seeking of solutions. Almost 3000 scientists have signed so far (that's quite a number I think). So we start hearing that "those academics live in a world of their own" and "we all know how to use rod on them; after all, we know the names" etc. I'm really scared. (I singed too of course!)
@UlrikeFischer It should jump into the face of newbies who don't know that bold things are informational links (not shouting) or underlined, historically. Sometimes it feels like shouting if people write: Post a minimal example so I can understand rookies if they would feel annoyed but don't click on it. I can think it over, I'm open to ideas wich help solving it.
@StefanKottwitz Everybody starter will feel annoyed when said to read something, that will at least take half an hour to read, and maybe two hours to prepare. I fully understand that.
The point behind meta.tex.stackexchange.com/a/6257/17423 kinda 'hit me' -- should we try to provide translations for the 'What is an MWE?' post? I know SE is in English (and in my case, thank goodness), but links out to external material in different languages would probably help a lot of our users. Maybe Parsi-LaTeX and TeXwelt have similar posts we could link to from the top of the question on our site.
@SeanAllred Something like that might be helpful, for sure. See e.g. this post today, in which the person didn't know the English term and couldn't search for the info very easily.
@SeanAllred Well as I note in my last comment, the LaTeX Intro has been translated into lots of languages, so reading the English one alongside one's own is a place to start.
@AlanMunn sorry, that's just lack of willingness to google something for 2 minutes. They should know the notion in their language and then they can use a dictionary, or wikipedia. In case of subscript and German, this works really well, I just tried.
@AlanMunn well, my opinion is that providing support to non-English speaking people on this site is impossible, beyond sending them to another site (texwelt, parsilatex, ...)
@Johannes_B I didn't know how a certain piece of meat is called in French. Wikipedia saved me, but it took like 15 minutes to find the information. It works, if you try :-)
@yo' Oh, I totally agree. But it's also true that pointers to some ways of learning or alternative sites might be helpful. One thing that is a bit tricky though, is that it's easy to offend people by making comments about their language skills unless they've explicitly said something about them.
@yo' That's a funny one. In Ontario, where I grew up, most of the butchers are German. When I moved to Québec all the cuts of meat were different. Not just names, but actual ways to cut up the animal. So meat translations are actually really hard in most languages.
[0] Config.pm:324> INFO - This is Biber 2.1
[0] Config.pm:327> INFO - Logfile is 'deneme20.blg'
[75] biber-MSWIN:273> INFO - === %a %b %e, %Y, %H:%M:%S
[76] Biber.pm:333> INFO - Reading 'deneme20.bcf'
[396] Utils.pm:146> WARN - No data sources defined!
This is BibTeX, Version 0.99dThe top-level auxiliary file: deneme20.aux
The style file: plain.bst
Database file #1: biblatex-examples.bib
Warning--empty year in companion
(There was 1 warning)
@percusse Strange thing is, it works for me even with the extension
This is BibTeX, Version 0.99d (TeX Live 2015)
The top-level auxiliary file: jonasBibtex.aux
The style file: plain.bst
Database file #1: biblatex-examples.bib.bib
Warning--empty year in companion
(There was 1 warning)
@Johannes_B Not quite sure what the remark with latexmk has to do with it ;-). I only know that bibtex handles this differently on the systems (I ran into the problem some time ago, but as I can read log-file the source of the problem was obvious ...)
@egreg Avoid? Why? There is a lot of useful information: Run through the “thesis.tex” file a couple of times with LaTeX and BibTeX to obtain the final output
I am trying to get a handle on `fontspec`, but I am stumbling with the Gabriola OpenType options - The output of my code seems to want to put end-of-line contextuals on non-end-of-line characters:
@repurposer Ah, I see (I was compiling with LuaTeX, which is my default engine.) I see now. So LuaTeX shows a different problem, since you don't get the end n either.
Right, it fails immediately with "I can't find the format file `miktex-luatex.fmt'!"
@Johannes_B and LuaLaTeX fails with:
"luaotfload | db : Font names database not found, generating new one. luaotfload | db : This can take several minutes; please be patient.miktex-luatex.exe: Windows API error 1231: The network location cannot be reached. For information about network troubleshooting, see Windows Help." (Ugh, Microsoft)
I have been using XeLaTeX + MakeIndex + BibTeX while trying fontspec
@repurposer There's something odd with that font. I can't seem to find the long tailed n as a substitution for n in the font under any stylistic set. Yet somehow XeLaTeX is displaying it.
@repurposer No, not really. I don't do much with fonts except for Junicode (for medievelists) and phonetic fonts. I use Minion Pro typically for most printed things and I've come to like Cambria for presentations.
@repurposer You might want to ask your question on the main site and point out the difference between XeLaTeX and LuaLaTeX. People will grumble about the M$ font, but plenty of people will have it anyway. :) To make the example clear, I would make the main font also Gabriola and show the same text without the stylistic set.
Call me crazy, but I write my own figures in postscript, and my figure files need to access the file system (because I have files full of routines that the figure files use).
Because postscript can be a security hazard, the default for ghostscript is to disallow access to the file system, so my ...
This kind of question has been asked before, but I didn't see any involving using a GUI to pass parameters (doc class, new conditionals) to a LaTeX document. I would be interested in some precise instructions for this in TeXShop - presumably one can bind the "Typeset" commands to some pdflatex p...
@barbarabeeton @JosephWright Do you think i can ping Kaveh concerning the template discussion? His interests as TUG president as stated in Darmstadt are pretty much the same as mine concerning templates. I wasn't in Darmstadt, so maybe one who got to actually meet him would be better to ping. I guess he will be interested even in this early state of a draft.
@Johannes_B My impression is that he might be more focused on industry topics (XML based workflow, conversions, interactions; and publisher cooperation) than looking at pure LaTeX template users at entry level, usually - which is not bad, I just mean there are possibly further people very interested in pushing at the entry level
@Johannes_B Btw. somebody said to me: why should an old template be outdated or bad at all - LaTeX is claiming to run old code still fine and the very same today.