LaTeX forum ⇒ Document Classesdocument class flashcard Topic is solved

Information and discussion about specific document classes and how to create your own document classes.
flows69
Posts: 6
Joined: Wed Aug 27, 2014 7:22 am

document class flashcard

Postby flows69 » Thu Oct 09, 2014 4:41 pm

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,

flowFlashcard1.png
flowFlashcard1.png (576.66 KiB) Viewed 3575 times
flowFlashcard2.png
flowFlashcard2.png (430.36 KiB) Viewed 3575 times

Tags:

flows69
Posts: 6
Joined: Wed Aug 27, 2014 7:22 am

Postby flows69 » Thu Oct 09, 2014 4:43 pm

in case my code isn't accessible with the link in post:
https://www.writelatex.com/read/kktpvxmzjyhw

User avatar
Johannes_B
Site Moderator
Posts: 3792
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Oct 10, 2014 10:06 am

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.

flows69
Posts: 6
Joined: Wed Aug 27, 2014 7:22 am

Postby flows69 » Sat Oct 11, 2014 5:41 pm

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 ;)
Attachments
Practice1.log
the log file with the added command at the very beginning of the document
(14.72 KiB) Downloaded 91 times
Practice1.tex
the simplified code
(437 Bytes) Downloaded 101 times

User avatar
Johannes_B
Site Moderator
Posts: 3792
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Oct 12, 2014 1:36 pm

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 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.

flows69
Posts: 6
Joined: Wed Aug 27, 2014 7:22 am

Postby flows69 » Mon Oct 13, 2014 2:39 am

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.

User avatar
Johannes_B
Site Moderator
Posts: 3792
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Oct 13, 2014 8:59 am

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 2 guests