Landscape option

Messages in english

Modérateur : xcasadmin

GermanXG
Messages : 10
Inscription : mar. déc. 24, 2024 6:24 am

Landscape option

Message par GermanXG » ven. juil. 04, 2025 6:16 am

In general configuration the Landscape option don't seems to work, the generated postscript is always vertical. If I understand correctly this option indicates the orientation of the generated postscript.

XcasEngGuy
Messages : 162
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Landscape option

Message par XcasEngGuy » ven. juil. 04, 2025 5:45 pm

in the latex (.tex) file try changing:

\documentclass{article}

to

\documentclass[landscape]{article}

GermanXG
Messages : 10
Inscription : mar. déc. 24, 2024 6:24 am

Re: Landscape option

Message par GermanXG » sam. juil. 05, 2025 4:30 am

Thanks for your reply. Searching in french documentation the menu option I'm talking is "Fisch -> Imprimer -> Pre-visualisation". With this option I don't see any tex file generated, just the .ps file.

XcasEngGuy
Messages : 162
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Landscape option

Message par XcasEngGuy » sam. juil. 05, 2025 8:14 pm

In the file menu I use "Latex/Latex Preview". A ".tex" file is produced. I use Cygwin software to create the ps or pdf file from that. If you feel ambitious I can sent you the scripts I use.

A simple example:

Code : Tout sélectionner

if [ $# -eq 0 ]
then
echo 'Convert tex file to PDF - no mods'
echo 'Usage: latex_pdf <tex file>'
exit
fi
fn=$(cygpath -u $1 | sed -e 's/.[Tt][Ee][Xx]$//') # -e 's?.*/??g') # keep dir
latex $fn.tex
dvips $fn.dvi 
ps2pdf $fn.ps $fn.pdf
rm $fn.aux
rm $fn.dvi
cygstart $fn.pdf

I have others for enhanced styles.

GermanXG
Messages : 10
Inscription : mar. déc. 24, 2024 6:24 am

Re: Landscape option

Message par GermanXG » dim. juil. 06, 2025 6:34 am

Thanks, but I'm on linux. Supposedly the tool pdflatex convert tex files to pdf, but it returns some errors. Strange because GNU Texmacs works perfectly. Anyway, the generations of postcript works, not in landscape orientation but works.
Regards.

Répondre