How to write output values to the standard output without carriage return in FORTRAN

How to write output values to the standard output without carriage return:

program tstNoadv
 integer :: i
 do i = 1, 10
 write(*,"(A1,I6.4,$)") char(13), i
 call system("sleep 1")
 end do
 write(*,*) "Done"
 stop
end program
Posted in FORTRAn

How to make a pdf output from LyX without opening LyX file

Suppose you have a LyX file, my_thesis.lyx, in the current directory. Then, simply execute a command:

lyx -e pdf2 my_thesis.lyx

This will generate an output PDF file: my_thesis.pdf. If a PDF file of the same name already exists, it will be overwritten by the newly generated one.

 

Posted in Lyx