Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to use the sourcecodepro tex package to typeset some figures in an academic paper, but when I submit this to the journal, I don't provide a PDF, I provide latex code and they compile it on my behalf. This means that I cannot modify the texmf directory and must include all (non-standard) dependencies with my document.

I can easy include extra latex packages by placing the .sty file in my document directory.

Is there a way to do something similar with a font package like sourcecodepro?

I tried placing all of the font files and sty files in my document folder and I got an error:

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 SourceCodePro-Regular-tlf-t1--base
mktexpk: don't know how to create bitmap font for SourceCodePro-Regular-tlf-t1--base.
mktexpk: perhaps SourceCodePro-Regular-tlf-t1--base is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
share|improve this question
3  
I guess it is not possible. The editors will clearly stick to their fonts to maintain consistent layout. You can ask them but I guess they will deny your request. Why don't you create the figures as PDFs and include them in your document? The standalone package is a good starting point. – Uwe Ziegenhagen Dec 18 '12 at 7:03
    
What you suggest would be the fallback. The real situation is that I've created images in an external editor and I want to refer to elements from those images from within LaTeX. If I have to, I'll create an image of each element that I want to refer to, but this is messier than it really should be if a font package is available... – Arlen Cox Dec 18 '12 at 7:13

1 Answer 1

up vote 6 down vote accepted

The error means that the map-file is not activated. You can do it in your document with \pdfmapfile{=SourceCodePro.map} (if - as I assume - you are using pdf(la)tex). The map-file should be in your folder too.

share|improve this answer
    
Awesome! Thanks. The mysteries of latex continue to unfold. – Arlen Cox Dec 18 '12 at 9:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/87448/how-do-i-include-a-font-package-with-a-document
tex.stackexchange.com
crawl=CC-MAIN-2021-39
70664
application/http; msgtype=response
sha1:4FLQCBMPPHMZNM2OVFOWRVAPUEVZGZKF
<urn:uuid:f5ce6435-ea55-4d0e-8c0b-d82a3ef32a42>
2015-11-30T02:45:29Z
104.16.118.182
sha1:TPEX45BIUNZ2ZKMZDX3EKZRNL5NH4O5X
<urn:uuid:36e727b0-b528-4435-b441-64d50ce7eb14>
http://tex.stackexchange.com/questions/87448/how-do-i-include-a-font-package-with-a-document
response
<urn:uuid:83c5cec2-d7d3-49de-b688-d1868f8edfad>
robots: classic
hostname: ip-10-71-132-137.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-48
operator: CommonCrawl Admin
description: Wide crawl of the web for Nov 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf