Comments (15)
Could you please provide the font 华文仿宋 or post a link where it can be downloaded? Currently, I can't test your example because of the missing font.
If possible, also try to convert your file with the latest version 3.1.2 of dvisvgm and check whether the issue occurs there as well.
from dvisvgm.
The issue might be the same as #235 which has been fixed in dvisvgm 3.1.
from dvisvgm.
Thanks for your fast response.
Is there anyway upgrade dvisvgm via Hombrew?
from dvisvgm.
Unfortunately, I don't know since I'm not familiar with Homebrew. Maybe you could ask on their discussion page if they provide a more recent version.
from dvisvgm.
from dvisvgm.
Ok, thanks for the update. Please let me know if the latest version fixes the problem for you. Otherwise, I'll have a look what's actually going on.
from dvisvgm.
Hi, I'm encountering a compile issue with the 3.1.2 release. Could you please help on this?
Undefined symbols for architecture arm64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [hashcheck] Error 1
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1
from dvisvgm.
Could you please attach the entire build log including the output of configure
and make
? The single linker error message doesn't provide enough information to determine the cause of the failure.
from dvisvgm.
log.txt
Please find log in the attachment, tks
from dvisvgm.
The dvisvgm binary seems to be built correctly and should be located in the src
directory. However, the test hashcheck
can't be built, probably because the corresponding source file hashcheck.cpp
wasn't created correctly. Maybe it's empty on your system.
The file should be created during the build process by genhashcheck.py
which requires Python and the Python package xxhash
to be installed.
You can try to build it manually by calling make hashcheck
inside directory tests
. Afterwards have a look at the file and check if the main
function is present there. If not, some Python stuff is probably missing on your computer.
from dvisvgm.
from dvisvgm.
Yes, that should work. On Linux, python
is usually a symbolic link to the python3
executable:
> ls -la /usr/bin/python
lrwxrwxrwx. 1 root root 9 3. Okt 02:00 /usr/bin/python -> ./python3
from dvisvgm.
I found the dvisvgm
file and mv it to /usr/local/bin
, now it works fine with 3.12 version, thanks a lot!
but I get this message,
❯ dvisvgm --version
dvisvgm 3.1.2
❯ dvisvgm math.xdv -e -n -b min -o math.svg
processing of PostScript specials is disabled (Ghostscript not found)
pre-processing DVI file (format version 7)
processing page 1
graphic size: 43.44931pt x 568.400711pt (15.270686mm x 199.770002mm)
output written to math.svg
1 of 1 page converted in 0.190968 seconds
It's wired I'm pretty sure I have installed Ghostscript
❯ brew list | grep ghostscript
ghostscript
Any hints?
from dvisvgm.
Great to hear that the latest version fixes the issue for you.
It's wired I'm pretty sure I have installed
Ghostscript
dvisvgm requires the Ghostscript library, the Ghostscript executable is not sufficient. You need to make sure that the library is accessible through the search path of the dynamic linker or specify the path with option --libgs
or environment variable LIBGS
. Since I don't know much about MacOs, I can't give more specific hints. Here you'll find some more information:
- #143
- https://tex.stackexchange.com/questions/559640/making-dvisvgm-and-ghostscript-from-mactex-talk-to-each-other
- https://tobywf.com/2018/01/beautiful-svg-diagrams-with-tikz-dvisvgm
from dvisvgm.
Thanks a lot, all problem solved!
❯ export LIBGS=/opt/homebrew/Cellar/ghostscript/10.02.0/lib/libgs.10.02.dylib
❯ dvisvgm math.xdv -e -n -b min -o math.svg
pre-processing DVI file (format version 7)
processing page 1
graphic size: 43.44931pt x 568.400711pt (15.270686mm x 199.770002mm)
output written to math.svg
1 of 1 page converted in 2.23617 seconds
from dvisvgm.
Related Issues (20)
- Virtual font fallback to OFM for pTeX HOT 9
- Core dumped (and missing glyphs) HOT 2
- Crash when attempting to convert a simple PDF file using mutool HOT 3
- Inclined lines missing after XeLaTeX XDV output conversion to SVG, when using STRUKTEX package HOT 4
- Warnings in release candidate of gs 10.2.0 when -dOLDPDF and -dNEWPDF are used HOT 2
- the depth info is missing when using latex package hyperref HOT 2
- Left edge of viewBox is always 0 with --exact-bbox HOT 6
- Assertion violation + core dump HOT 3
- Raster instead of vector HOT 1
- Missing text from PDF >> SVG HOT 6
- Ghostscript 10.01.0+ support HOT 6
- Hyphen character missing when using luatex with DVI output HOT 5
- PDF -> SVG: Pixels cut-off on right border HOT 4
- pstricks: PostScript error: undefined in NodeScale HOT 7
- Request for reduced information verbosity level/flag HOT 6
- TL build patch: potrace HOT 2
- TL build patch: main src/Makefile.am HOT 1
- InvalidDVIFileException in upTeX DVI only on Solaris HOT 2
- Deferred initialization of PS doesn't work HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvisvgm.