mpjgregoire, (edited )
@mpjgregoire@cosocial.ca avatar

I learned on Thursday that can now invoke directly. The command I use is

latexmk -e '$pdf_previewer = q/start evince/' -xelatex -pvc -quiet document.tex

(Some people add %O %S after evince, but those are unnecessary in my case.)

The command runs xelatex, creates a pdf, and opens it in ; and it continues running so that any change in document.tex appears in Evince shortly after it is saved.

I've also created an command to run the process.

mpjgregoire,
@mpjgregoire@cosocial.ca avatar

What's my underlying task?

I am creating design notes using . I can print them directly to pdf, but exporting as produces nicer documents. I do a bit of editing of the .tex files in , reducing the font size of the code for instance.

gemlog,

@mpjgregoire I know nothing about Jupyter or its predecessor. Nor R. I'm confused why you are using an IDE to type up notes?

mpjgregoire, (edited )
@mpjgregoire@cosocial.ca avatar

@gemlog Sure, I can answer that. I will simplify, and describe a task outside my normal work, but one that's easy to understand.

Let's say that I want to size a floor joist. The critical load effect is bending moment, so I calculate the maximum value as the unit weight of the floor itself plus the pressure of humans and furniture (say 100 psf) times the spacing of the floor joists times the span length of the joist squared divided by 8. Then I multiply by 3 as a safety factor.

1/4

mpjgregoire, (edited )
@mpjgregoire@cosocial.ca avatar

@gemlog The required bending resistance must be at least as large as that bending moment from the loads and the safety factor. I then calculate the bending moment resistance as a stress (like a pressure) that depends on the type of wood, times the section modulus of the wood, which depends on its cross-sectional geometry. And so I can determine if SPF 2x8 are sufficient at 12" for a 10' span.

2/4

mpjgregoire,
@mpjgregoire@cosocial.ca avatar

@gemlog Doing this by hand, I write a little note to explain the purpose of the calculation, what design codes are applicable, and the source of inputs; I include a sketch; and then the calculation itself. This is a simple design note, an engineering document that must be reviewed, signed, dated and archived.

#Jupyter is a literate programming system, allowing me to mix notes, images and calculations. I can redefine my span length as L=9' and have it update the other calculations automatically.

mpjgregoire,
@mpjgregoire@cosocial.ca avatar

@gemlog Emacs I use not as an IDE, but just as a text editor, first as an interface to Jupyter and then for minor edits to the .tex file Jupyter exports. The result is a very nice-looking pdf which I can either archive as such or print for physical archiving.

4/4

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • provamag3
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • megavids
  • Leos
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines