Hello,
I would like to type flashcards in LaTeX to help in my current econometrics classes. Here is the documentation for this document class:
flashcards
Before writing my own flashcards, I tried a shortened example code in the paper above to make sure the outputs were as expected. It does look quite neat online:
https://www.writelatex.com/1592570tshzcw#/3963892/
My problem is getting this code to work on TexMaker. There must be something wrong with my setup given the number of errors flagged ...
including errors in lines beyond 70 while my code only has 20.
Attached is a screenshot of all the errors I get and my current options settings.
Any idea as to what the problem is and how to fix it would be very appreciated. Thank you in advance for your time and help,
Document Classes ⇒ document class flashcard
Re: document class flashcard
in case my code isn't accessible with the link in post:
https://www.writelatex.com/read/kktpvxmzjyhw
https://www.writelatex.com/read/kktpvxmzjyhw
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
document class flashcard
Do you have an up-to-date TeX distribution? Please add the line
\listfiles
to the very beginning of your example file and try to make it more minimal. Please post the resulting file list (to be found in the log file).The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: document class flashcard
Hello Johannes,
To make sure I have an up to date TeX distribution, I just uninstalled/reinstalled Miktex and Texmaker. After that, reran the code with the same errors. Also, the flashcards package is listed in Miktex package manager.
Here is what I hope is the file you requested with a simplified example.
Thank you very much for your response and time
To make sure I have an up to date TeX distribution, I just uninstalled/reinstalled Miktex and Texmaker. After that, reran the code with the same errors. Also, the flashcards package is listed in Miktex package manager.
Here is what I hope is the file you requested with a simplified example.
Thank you very much for your response and time

- Attachments
-
- Practice1.log
- the log file with the added command at the very beginning of the document
- (14.72 KiB) Downloaded 560 times
-
- Practice1.tex
- the simplified code
- (437 Bytes) Downloaded 661 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
document class flashcard
MikTeX seems to miss a few files (one at least) there. The implementation is a bit buggy in regard to this, cause instead of providing the commands in a central place and redefine them later (or use the default if nothing could be found) it screws up your compilation.
You can generate those config files by downloading the flashcards.ins and flashcards.dtx from CTAN to your working directory (the one with your tex file in it) and just run
You can generate those config files by downloading the flashcards.ins and flashcards.dtx from CTAN to your working directory (the one with your tex file in it) and just run
latex
on the ins-file.The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: document class flashcard
Hello again,
You were completely right, some .cls and .cfg files were missing. If someone is having the same problem I explain how I got them further below. I have one last question on this topic: I made sure that the missing files were put in the Miktex 2.9\tex\latex\flashcards folder. I assumed it would be enough to get my code running as any other. It turns out the .cls and .cfg files need to be present in the same folder as my .tex file. If they aren't I get the exact same errors as before. Technically I got the code to run so that's far from existential but if you had any idea as to what the problem is I would be very interested in understanding the reason.
In any case, thank you very much for your help Johannes.
If you face the same problem as I did:
1. Download the package: http://ctan.org/pkg/flashcards and unzip it
2. Open the Window command prompt
3. Either target the folder in which the files downloaded above are or put the downloaded files in the default directory the window command prompt uses
4. Run the command: latex flashcards.ins which will generate all the missing files
5. Place all the newly generated files in the same folder as the .tex document you are trying to run and voila you are good to go.
You were completely right, some .cls and .cfg files were missing. If someone is having the same problem I explain how I got them further below. I have one last question on this topic: I made sure that the missing files were put in the Miktex 2.9\tex\latex\flashcards folder. I assumed it would be enough to get my code running as any other. It turns out the .cls and .cfg files need to be present in the same folder as my .tex file. If they aren't I get the exact same errors as before. Technically I got the code to run so that's far from existential but if you had any idea as to what the problem is I would be very interested in understanding the reason.
In any case, thank you very much for your help Johannes.
If you face the same problem as I did:
1. Download the package: http://ctan.org/pkg/flashcards and unzip it
2. Open the Window command prompt
3. Either target the folder in which the files downloaded above are or put the downloaded files in the default directory the window command prompt uses
4. Run the command: latex flashcards.ins which will generate all the missing files
5. Place all the newly generated files in the same folder as the .tex document you are trying to run and voila you are good to go.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
document class flashcard
If you are uncomfotable with the command line (unfortunately, many are) you can open the ins file with your favourite LaTeX-editor (right click → open with …).
It doesn't matter at this point if you are running (pdf,xe,lua)latex or the TeX itself.
LaTeX will always look for files in the current working directory (the one with your main tex-file). If you want to put files in another place (the texmf-tree) you need to inform your system about the new files, i.e. Refresh the File Name Database.
It doesn't matter at this point if you are running (pdf,xe,lua)latex or the TeX itself.
LaTeX will always look for files in the current working directory (the one with your main tex-file). If you want to put files in another place (the texmf-tree) you need to inform your system about the new files, i.e. Refresh the File Name Database.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.