FEMM icon indicating copy to clipboard operation
FEMM copied to clipboard

FEMM manual using pdfLaTeX

Open pikkedil opened this issue 2 years ago • 8 comments

I would like to use FEMM in a course on electromagnetics. The manaul is good. However, it still uses pslatex. I also used it 20 years ago. The pdf-format ist much easier. So I did the minimum to just update the figures:

  1. specify the path in the main tex-document.
  2. Created subdirectories for figures and content.
  3. Converted figures to png, pdf or jpg.

Perhaps in future I can translate parts to German.

pikkedil avatar Feb 06 '24 12:02 pikkedil

hi! thanks for your PR two things:

  1. can you please merge with master?
  2. i see you have removed all the references in ".tex.in" input files about "@CMAKE_CURRENT_SOURCE_DIR@". It seems that for them being input files for cmake is not even necessary, because there's no variable to be substituted before being fed into the latex compiler. But I remember this step was necessary for portability on some systems. Open question (i don't remember the problem it was fixing back in the time): was it due to a postscript/dvi problem or is it something we should still consider?

cenit avatar Feb 07 '24 14:02 cenit

The pslatex package and the [dvi] option are not necessary anymore. %\usepackage{pslatex} \usepackage{graphicx} \usepackage{hyperref}

Furthermore, by using graphicspath the need for the cmake option is not necessary as well. \graphicspath{{figs/}} % Add more directories if needed, separated by commas

pikkedil avatar Feb 07 '24 15:02 pikkedil

germishuizenjo@Notebook MINGW64 ~/github/FEMM $ git push fork Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 To github.com:pikkedil/FEMM.git adffaab..8f39ecf master -> master

pikkedil avatar Feb 07 '24 16:02 pikkedil

germishuizenjo@Notebook MINGW64 ~/github/FEMM $ git push fork Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 To github.com:pikkedil/FEMM.git adffaab..8f39ecf master -> master

i merged with master for you

cenit avatar Feb 08 '24 08:02 cenit

Stefano, I only use git in a rather straightforward way. This is my first PR, so I do not know the next steps. I am not so clear what the next steps are. Can you briefly explain me what to do?

pikkedil avatar Feb 08 '24 17:02 pikkedil

i need to review the manual, the rendering quality, etc. For you it's over, at least for now. In case there is need to review anything, I'll let you know. In case it's good to go, I will merge the PR

cenit avatar Feb 09 '24 21:02 cenit

So, i have a question for you just looking at the list of files: why some are converted to jpg, others to png and a new script looks like it has been used to convert everything to pdf?

cenit avatar Feb 09 '24 21:02 cenit

I wanted to provide some context regarding the varied file formats you may have noticed in the recent commit. The reason behind the mix of jpg, png, and pdf files is as follows:

Initially, I converted ps and eps files to pdf. However, some images lacked a boundary for automatic cropping. To address this, I used an automated function in Acrobat-Reader to export these pictures as png. For the few cases where this automated process failed, manual intervention was required, and jpg was the only offered option.

The choice to convert everything to pdf using a new script was driven by the ease of updating to pdfLaTeX. Screenshotting was an alternative, but it proved less efficient. Looking ahead, there's consideration for leveraging TikZ in the future to enhance graphics quality, but this is a project for the long term.

I want to emphasize my commitment to contributing to FEMM rather than creating a new fork. Your understanding and feedback are always appreciated.

Looking forward to the ongoing collaboration and improvements!

pikkedil avatar Feb 10 '24 09:02 pikkedil