« first day (3334 days earlier)      last day (1607 days later) » 

cis
8:00 AM
.......................................

Does somebody have Sage 8.x for Windows?

Where do I find the "executive file", so that I can say in the cmd:

"C:\Programme\SageMath 8.9\...." load('/folder/sagebsp01.sagetex.sage')
 
@cis why do you need the full path in the document, can't you just add the executable to your PATH environment?
 
cis
@DavidCarlisle Yes, but first I need to know, where the exe or py or... is placed....
 
@cis well how do you start it? It is presumably in your path already, or you have a desktop shortcut or something
 
cis
@DavidCarlisle In a sage-shell (and it works), but I need to find out, how to start it from the windows-cmd...
 
8:13 AM
@cis here is a long message tex.stackexchange.com/a/472964/2388
 
8:24 AM
If anyone can think of any blocking issues for PGF/TikZ, please comment on the corresponding tickets or open a new one if it doesn't exist. I'm only waiting for the latest batch of oberdiek packages, then I'll release 3.1.5.
 
cis
8:50 AM
@UlrikeFischer I tested many stuff from that,... don't have success...
 
@HenriMenke sorry about that:-) Anyway they all went in at the ctan end so should appear in texlive today and mirrors tomorrow I would guess.
@cis if you have a shortcurt to start it you can look at its properties or just type sage into the windows searchbox and see where it is,
 
cis
9:05 AM
Yes, good idea..... That is


"C:\Programme\SageMath 8.9\runtime\bin\mintty.exe" -t 'SageMath 8.9 Console' -i sagemath.ico /bin/bash --login -c '/opt/sagemath-8.9/sage'

I got "Access Denied" :)
 
@cis oh so it's running in some sort of posix shell environment still I don't see why yo can't put that commandline into a write18 (quoting the \ of course.)
@cis put that command line in mysage.bat in the same folder as your document then use \write18{mysage}
 
cis
@DavidCarlisle Hehe, same effect: "Access Denied"
 
9:32 AM
@cis What else is in C:\Programme\SageMath 8.9\runtime\bin or in other terms: Is C:\Programme\SageMath 8.9\runtime\bin relevant enough for sage to be in your path?
And where do you get access denied? From windows? From the spawned shell?
 
cis
10:06 AM
It's about developing an arara rule for sage (as for all operating systems, "ifWindows()" etc.):

https://tex.stackexchange.com/questions/520683/arara-sage-a-sagemath-rule-for-arara?noredirect=1#comment1316783_520683

I don't think I can do the job; not even with the advice from

https://tex.stackexchange.com/questions/472941/call-sage-in-texstudio-windows/472964#472964


I am not an operating system (Win / Linux /...) expert in this dimension ...
.....................
PS: All I have are (good) ideas.

It surprises me anyway why so many users have not yet had the idea "arara-sage".

I'm not surprised that SageTeX is rarely used.
The execution is complex and extensive (at least for Windows)

The online version "CoCalc" is tough ... For me it takes about "1 second per letter" ...

According to the current status, SageTeX - in general - cannot be used effectively!
 
10:26 AM
@cis I have seen that question. Anyway, you seem to have got an "access denied" error somewhere. You do not say where. You seem to have followed some steps from the answer you linked to but you do not name them. Then you repeatedly give no further information on any of this. So maybe you should make this reproducible first…
 
cis
@TeXnician I don't know where the denial of access occurs! You will get every conceivable information from me if it is necessary.
 
@cis you know more than us, for example do you get it if running the command you show directly from the cmd terminal or just if you call it from tex
 
cis
10:41 AM
This analysis will not have success.

.....................
I have another script-like idea, which should, however, limit my imagination.

1. It may be possible to create a * .sage file on the computer and translate it from the command line via his CoCalc account.

I don't know if that works ...

2. Then it should be possible to translate a SageTeX-containing file * .tex or * .sagetex.sage using a suitable script with CoCalc (Sage does not need to be installed then...)

That could work.
Can I write such a script? No....
...................


PS: The whole thing would have something of the package "getmap", which also makes an online access.
 
11:09 AM
Hi @DavidCarlisle I have a question on this answer of you
28
A: What does the phrase "Underfull \hbox (badness 10000) in paragraph" actually mean?

David Carlisle99 times out of 100 it means you have \\ incorrectly placed at the end of a paragraph. But to dissect the message: Underfull \hbox (badness 10000) in paragraph at lines 4--5 A box is underfull if there is not enough content to fill its stated size. If you go \hbox to 5cm{A} then it makes...

Today I started editing my latex file with extensions of visual studio code
It gave me warnings on problems in my file
I opened my log file
and saw many of that comment there
I can see that this refers to parts of my bib file, not my main typeset
should I do anything about that, edit it or leave it as it is?
this is also another warning there: LaTeX Warning: h' float specifier changed to ht'.
 
@EnthusiasticEngineer bibliographies are often tricky to typeset hard to say in general. If it is putting \\ at the end of paragraphs (which is what I discuss mostly in that answer) that is an error in your bibliography style but if it is just making unbreakable units and so having to much white space you need to decide what to do, just look at teh output, how bad is it... If it is unbreakable URL allow them to break with url package, otherwise hard to guess...
@EnthusiasticEngineer don't use \begin{figure}[h] that is a request to move all figures to the end of the document. In latex2.09 that's what happened, but in 2e we guess you didn't mean that and change it to [ht]
 
@DavidCarlisle exactly it is what you mention. I use this code to break my links in the biblio part: '\def\UrlBreaks{\do\/\do-}'
I used it because my links were unbreakable and were moving in the white space of paper
@DavidCarlisle I used it because I wanted all the figures appear after the section of figures in the end of my document... otherwise all of them will come between my text...
 
Is there a best package to create a survey form with check boxes (check one of N) and blank spaces?
 
11:40 AM
@EnthusiasticEngineer that's fine (or you could allow nore places) but where is the white space? you must have some stretched out lines if you are getting badness 10000
@EnthusiasticEngineer ok but figure means "allow this to be moved" (otherwise you could use \includegraphics directly) but [h] means don't put it at the top of a page, don't put it at the bottom of a page don't put it on a page on its own, as you do not include t b p, so if for example you have a figure that is 50% of textheight and its natural position comes 75% down the page, then it will not fit "here" and you have specified that it is not allowed anywhere else.....
 
12:26 PM
Hmm. Why is eqexam not installed by tlmgr?
 
@wilx texlive doesn't like adding packages that only support non free software or fonts and most of those packages require acrobat
 
@DavidCarlisle I see.
 
@wilx the licence is LPPL so it could be distributed, but Karl's doing the work and he takes a harder line...
 
cis
@wilx Maybe same reason like "sagetex.sty"...
 
1:08 PM
Hi mr. squirrel!
 
@DavidCarlisle thank you david. I learn so much each time I ask you any questions :)
 
cis
1:32 PM
@PauloCereda He-Ho
 
@cis hi!
 
cis
@PauloCereda Do you think an arara-sage is in principle possible?
 
@PhelypeOleinik --- thanks a lot for your help. I finally have
%
% Thanks to Phelype Oleinik tex.stackexchange.com/a/520806/38080
%
% this is needed to avoid problems with \ConTeXt
\ifcsname normalunexpanded\endcsname
  \let\pgfutil@unexpanded\normalunexpanded
\else
  \let\pgfutil@unexpanded\unexpanded
\fi
% minimally expand a pgfkey to check if it's {}/undefined or filled.
\def\unexpandedvalueof#1{%
  \pgfutil@unexpanded\expandafter\expandafter
    \expandafter\pgf@circ@valueof@chk\pgfkeysvalueof{#1}}
\def\pgf@circ@valueof@chk#1{%
  \ifx\relax#1%
    \expandafter\pgfutil@firstoftwo
Which seems to work well. I'll check as soon as I can add the flipflops to circuitikz in a proper ConTeXt file. Thanks again!
 
1:48 PM
@Rmano You're welcome :-)
@Rmano I checked with a minimal ConTeXt document and that example worked, so I don't see why it would break... But who knows ;-)
 
latex workshop on visual studio code is very nice... uses my texlive to compile document...
also has a feature that does pdflatex bib pdflatex pdf latex run with one click! :))
 
@PhelypeOleinik yes --- but the flip-flops implementation is quite longer ;-) and the probability that I have missed something like the \unexpanded thing is very high... ;-)
 
@Rmano Oh, and about your comment about \protected@edef in ConTeXt: no, it's not available there. \protected@edef uses LaTeX's \protect to avoid the expansion of protected macros. As far as I know (which is not much), ConTeXt uses \protected (the e-TeX primitive) to make robust macros, the same as expl3.
@Rmano Oh, I know :-) It's very common to take some command, like \@firstoftwo for granted and then it suddenly doesn't exist in a format. \begin{advertisement} That's why expl3 is format-independent :-)
2
 
2:08 PM
@PhelypeOleinik yayanindependentformatohnoiforgotspacesaregobbled
:)
 
@PhelypeOleinik \end{message} ocurred in advertisment ;-P
 
@PauloCereda Germansdonotusespacesandyetheretheyare:-)
 
@PhelypeOleinik ooh
Frank's inspiration :)
 
@Rmano I tested only in ConTeXt, LaTeX and Plain. The chatroom is an unsupported format ;-)
 
2:34 PM
@PhelypeOleinik Took a bit of work :)
 
cis
@PauloCereda I don't get an answer - so I think it is a big, possibly unsolveable problem. ;)
 
@cis oh sorry, I forgot to answer. :) Let me answer now.
 
@PauloCereda I see you started your German language course already
 
@cis well, arara simply wraps stuff and if there a way to run Sage things, it's quite possible. The problem is, if you cannot make things work without the need of arara , little to nothing can be done with the tool itself, since it relies on the underlying configuration of your system...
 
@JosephWright :)
 
2:47 PM
@PhelypeOleinik and tea
 
@PauloCereda Oh, british coffee :)
@PauloCereda Tea is good too
 
@PhelypeOleinik Exactly :)
@PhelypeOleinik Yes. :)
 
cis
@PauloCereda Ah, ok. I understand. So I will try solve this for the Windows-Comandline.
For Linux I solved the problem with arara-sage ca. 2 years ago.

The best way, in my opinion, would be a "online-solution", like
sagetex (PC) --> *.sage (PC) ---> SKRIPT ---> CoCalc (WEB) ---> pdflatex (PC) --> *.pdf (PC)

But I do not know, if this is possible....
 
@cis why do you want to run it from inside tex? obviously that's more complicated than running it outside tex but if you get it running from the commandline first (which is purely a sage installation question) then you should be able to amke that work from tex if you want,
 
cis
3:15 PM
The instruction
here
6
A: Call Sage in TeXstudio (Windows)

user170109As explained below we can work around most issues raised. And here is the customising to run in ubiquitous TeXworks (TeXstudio in detail below). SageMaths is developed to run with a customised version of Python currently undergoing changes from version 2.7 to 3.x. SageTex is not provided as a ...

is promising. But I can't make it work.
 
@cis as I say first get it working on the commandline, then get it working from tex called from the commandline and only then look at editors like texstudio. Trying to integrate a command that you can't get to run into an IDE (or arara) is doing things backwards.
 
cis
That was an answer, to your remark; because there is, as the title does not implicitly suggest, a procedure is described: for the command line.

The editor stuff, which was certainly unclear, is my smallest problem right now!
 
cis
3:48 PM
...................
...............:
Again for recapitulation:

As already said, there is currently no convenient, ergonomic or fluid method to use SageTeX.

And in my opinion, that's exactly why SageTeX is used so rarely.

It is of no use here to come up with a solution that only works for a few super specialists.

Sure, it's my problem; so it doesn't matter much for the rest ....
 
4:11 PM
@cis well sagetex has an issue tracker: github.com/sagemath/sagetex/issues.
 
4:53 PM
The following function returns a value even if the function argument is not passed.
local function bool (b)
   print(string.format("b is %s", b))
   return ((b and "foo") or "bar")
end
print(bool())
b is nil
bar
Other than explicitly checking for the value of b, can anyone think of any other way of writing this function?
I.e. if b true then foo, if b false then bar.
 
@FaheemMitha You are not explicitly checking, you are using the standard Lua (X and Y) or Z approach
 
@JosephWright Yes, I'm aware. Which isn't ideal, because in this case it returns a value even if the argument isn't passed.
I'm wondering if there are other options, besides explicly checking for the value of b.
 
@FaheemMitha Oh, you want to return foo or nil`?
 
@JosephWright I want the function call to fail if the value of b isn't given to the function.
 
function test(val)
  return (val and "X") or nil
end

print(test("a"))
print(test())
@FaheemMitha Assertion?
function test(val)
  assert(b)
end

print(test("a"))
print(test())
 
5:04 PM
@JosephWright That would fail if b was true. I want it to fail if b neither true nor false.
In other words, I want to make sure a bool is being passed.
 
@FaheemMitha Lua doesn't really work like that: all values are logically true other than false and nil
 
3
Q: How to check for boolean argument in lua function

DarkAtomTo get integer arguments into from the script into my C code, I can use luaL_checknumber(), but there is no function called luaL_checkboolean() that would allow me to get bool arguments. Is there any workaround for this?

Possibly relevant...
@JosephWright Yes, I'm aware. But in the worse case it's possible to explicitly check whether the falue is actually true or false, correct?
Specifically, this function:
 
@FaheemMitha Yes, if you really want to, but that's anti-pattern for Lua: if I pass "foo" to a boolean, I know it should be treated as true
 
lua_isboolean
int lua_isboolean (lua_State *L, int index);
Returns 1 if the value at the given index is a boolean, and 0 otherwise.
@JosephWright In this particular situation, I'm primarily concerned that bool is in fact set. I guess I could just check it isn't nil, but I figure I might as well check it's actually a bool, since that's what I intend it to be.
@JosephWright Why is it an anti-pattern?
Oh, never mind. That's of the C API, it looks like.
 
5:19 PM
@FaheemMitha because you force the caller of your function to cast to true or false before calling, which is unexpected.
 
@DavidCarlisle Why is it unexpected, if I'm expecting the value to be a bool? Other languages have bools. In strongly typed languages at least. Which literally will not accept other values than true or false.
Not that I'm a fan of strongly typed languages. It's a bit like strapping oneself into an Iron Maiden as a precaution against failing over. But they do have their advantages.
 
@FaheemMitha "strongly typed languages at least". exactly. It's same as C it is strongly built into the system that 0 is false and not 0 is true, so if you had a function that was 0 false 1 true anything else an error, it would be inconvenient to use.
 
5:36 PM
@DavidCarlisle Except that at least C checks if a variable has been declared. Lua doesn't do that, of course.
 
@FaheemMitha all languages have their idioms and quirks best to go with the flow not try to write python in Lua.
 
@DavidCarlisle I'm not particularly a go-with-the-flow kind of person...
 
@FaheemMitha Because it's a documented feature of Lua that any variable that is set to something other than false is true, so I'm well within my rights to use variables in that way
@DavidCarlisle, @UlrikeFischer I've asked Jonas about the Secret Website
 
@FaheemMitha Einige Leute behaupten, dass das Schreiben in einer Sprache und die Verwendung von Google Translate in einer anderen nicht immer den natürlichsten Text produzieren. Ich bin sicher, dass sie falsch sind.
 
@DavidCarlisle, @UlrikeFischer, @egreg, @MarcelKrüger, @PhelypeOleinik Ooh, something directly relevant to Unimath on Twitter: johndcook.com/blog/math_symbols
 
6:03 PM
@DavidCarlisle Regrettably, I cannot read German.
 
@JosephWright You couldn't resist too long without a secret ;-)
@JosephWright Oh, the &thing; thingy :)
 
6:34 PM
@FaheemMitha you could read it the same way I wrote it
@JosephWright starts off with a wrong statement:=0
 
@DavidCarlisle Except for eu and ei
 
@FaheemMitha type(...)
 
7:02 PM
@PauloCereda Oh, I didn't think of that. Thanks.
 
Do you use an umlat/dieresis with with word naive?
 
@StrongBad most people don't bother, but it's probably more correct
 
@DavidCarlisle I usually don't, but I have a sentence with naive and a bunch of names that all have accents. As I was adding in the marks, it made me second guess myself.
 
@StrongBad I have no idea how to type it on a UK keyboard (I'd type it via the unicode number in emacs if I really had to)
 
@DavidCarlisle ööh
@JosephWright ooh
 
7:15 PM
@PauloCereda ooḧ
 
@DavidCarlisle o.O
 
@PauloCereda Oâ‹…â—¯
 
@DavidCarlisle quack?
 
@PauloCereda dinner
 
@DavidCarlisle oh no
 
7:21 PM
Hello friends.
When we load a package, almost always many other packages will be loaded by it, which could be load another and another and so on. Is it possible to get a list of all packages loaded?
 
@Sigur you could use the snapshot package
 
@StrongBad, thanks. I have it. I'm testing.
 
@Sigur if you are using biblatex see tex.stackexchange.com/questions/508985/…
@barbarabeeton is there any word about getting a bug fix for the snapshot package: tex.stackexchange.com/questions/508985/…
 
@JosephWright -- It rather seems to ignore MathMl as a constituent part of XML.
 
@barbarabeeton: since he's here, a coffee with @Sigur is being arranged.
 
7:28 PM
@barbarabeeton, @PauloCereda, oh, yes, maybe in 2 days.
 
@Sigur woo
 
@PauloCereda, bring your note book to take note on my TeX questions.... lol
 
@Sigur :)
 
@Sigur pdflatex --recorder yourfile will write a fls-file with all files.
 
\listfiles too?
 
7:33 PM
@UlrikeFischer, nice. I don't know why some lines are duplicated in fls file. But it works.
@PauloCereda, on preamble?
 
@Sigur Guess so, it's been a while...
 
@Sigur Imho because latex first tests (which actually loads) and then loads really.
 
@PauloCereda, it works.
*File List*
report.cls 2019/10/25 v1.4k Standard LaTeX document class
size10.clo 2019/10/25 v1.4k Standard LaTeX file (size option)
amsmath.sty 2019/11/16 v2.17d AMS math features
amstext.sty 2000/06/29 v2.01 AMS text
amsgen.sty 1999/11/30 v2.0 generic functions
amsbsy.sty 1999/11/29 v1.2d Bold Symbols
amsopn.sty 2016/03/08 v2.02 operator names
 
@Sigur woo
Do you guys intend to watch Star Wars 9?
 
I don't.
 
7:41 PM
Russell just called and asked if the packages that list all loaded packages list themself?
 
@mickep ooh
Where are you, Zermelo–Fraenkel?!
 
@PauloCereda ohh :)
 
@mickep ooh :)
 
@mickep, @PauloCereda, at least the set of such packages is non empty since snapshot does that.
 
@PauloCereda pah non well founded set theories are more fun
 
8:10 PM
@StrongBad -- I'm no longer at AMS, and though I could inquire, a bug report has already been submitted per a comment on the question. An answer to the question proposes a workaround. One possibly relevant thing that I am aware of is that AMS does not accept (and cannot process) biblatex submissions, so I'm quite certain that this combination was never tested.
 
8:26 PM
@PauloCereda Yup
@barbarabeeton Er, yes ...
 
9:24 PM
8
Q: How to disable the announcement banner?

Henri MenkeLately when visiting sites on the Stack Exchange network, I have seen this announcement banner popping up, right underneath the top bar. Here is a screenshot of today's announcement banner: Now I absolutely don't care what some guy I've never heard of has to say about Git or any other thing o...

Please vote to reopen. The stupid announcement banner is back.
@JosephWright @MartinScharrer @StefanKottwitz Can you please contact the powers and make them aware of this problem? ^^^
 
@HenriMenke Done
 
cis
@UlrikeFischer Yes, that's nice. I don't want to file the case. I want to solve the problem.
 
9:57 PM
@cis that's why I would file a case: so that the people who understand the system solve the problem.
 
10:14 PM
I've used the star option in one of my macros, but I don't really know why. Is there a reason I can't change it to be an optional named argument using a key-value system? It would be easier to add/remove if necessary. Does TeX reserve some special categories for star arguments?
 
@FaheemMitha Huh? There are no optional arguments in TeX: presumably you are talking about LaTeX
 
@JosephWright Well, \NewDocumentCommand etc.
Or xparse, if you prefer.
 
@FaheemMitha Right, so xparse then
 
@JosephWright Yes, I guess star is a LaTeX convention, not a TeX one.
 
@FaheemMitha You can use an optional arbitrary token: the * is just handled as a special-case as it's a LaTeX convention
@FaheemMitha s = t*, o = d[] for convenience
 
10:18 PM
@JosephWright Oh. BTW, I assume you're the author of texdev.net/2010/05/23/from-newcommand-to-newdocumentcommand
You've got:
 
@FaheemMitha Well that is my blog ...
 
\NewDocumentCommand\TwoTypesOfOpt{D<>{}O{}m}%
Unless I'm missing something, the HTML bits aren't intentional.
 
@FaheemMitha Just spotted that myself; fix coming up
@FaheemMitha Give it a minute for GitHub to regen the HTML
 
@JosephWright Ok. Thank you.
 
@FaheemMitha I converted from WordPress and there are still a few gremlins
 
10:22 PM
Ah. What are you using now?
 
@FaheemMitha Jekyll on GitHub Pages
 
@JosephWright Is it better?
Ruby. So probably better than PHP (ugh).
Oh, and integrated with GitHub.
 
@FaheemMitha From my point of view, how it's written is irrelevant; I don't actually do anything
 
@JosephWright Ok.
 
@FaheemMitha Static pages, so good for a blog with no comments, not so good if you want discussions or wahtnot
 
10:24 PM
@JosephWright Yes, I see.
@JosephWright Your blog entry has no mention of using key value packages/libraries for named optional arguments, though this must be a very commonly used technique.
 
@FaheemMitha That's really a separate thing, though: xparse is about grabbing the arguments themselves, how you then process them is up to you. For example using an o-type argument for keyvals is very common: I do it routinely in siunitx
\ExplSyntaxOn
\NewDocumentCommand \foo { O{} m }
  {
    \group_begin:
      \keys_set:nn { foo } { #1 }
      ...
    \group_end:
  }
\ExplSyntaxOff
 
@JosephWright Fair enough. But you could at least include a mention and a pointer, perhaps to those other articles of yours. In case the reader is not aware of that option.
@JosephWright Yes, like that.
 
11:28 PM
@FaheemMitha and free
 

« first day (3334 days earlier)      last day (1607 days later) »