作図ソフト dia の改良版
Révision | 662ba659d483ddd01667065de6dace52214eb235 (tree) |
---|---|
l'heure | 2014-05-03 01:00:10 |
Auteur | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
pstricks: fixed linestyles for dash-dot and dash-dot-dot
Formerly these were breaking the rendering altogether, now only the
text rendering has still issues.
@@ -339,32 +339,24 @@ set_linestyle(DiaRenderer *self, LineStyle mode) | ||
339 | 339 | case LINESTYLE_DASHED: |
340 | 340 | pstricks_dtostr(dash_length_buf,renderer->dash_length); |
341 | 341 | fprintf(renderer->file, "\\psset{linestyle=dashed,dash=%s %s}\n", |
342 | - dash_length_buf, | |
343 | - dash_length_buf); | |
342 | + dash_length_buf, dash_length_buf); | |
344 | 343 | break; |
345 | 344 | case LINESTYLE_DASH_DOT: |
346 | 345 | hole_width = (renderer->dash_length - renderer->dot_length) / 2.0; |
347 | 346 | pstricks_dtostr(hole_width_buf,hole_width); |
348 | 347 | pstricks_dtostr(dot_length_buf,renderer->dot_length); |
349 | 348 | pstricks_dtostr(dash_length_buf,renderer->dash_length); |
350 | - fprintf(renderer->file, "\\linestyleddashdotted{%s %s %s %s}\n", | |
351 | - dash_length_buf, | |
352 | - hole_width_buf, | |
353 | - dot_length_buf, | |
354 | - hole_width_buf ); | |
349 | + fprintf(renderer->file, "\\psset{linestyle=dashed,dash=%s %s %s %s}\n", | |
350 | + dash_length_buf, hole_width_buf, dot_length_buf, hole_width_buf ); | |
355 | 351 | break; |
356 | 352 | case LINESTYLE_DASH_DOT_DOT: |
357 | 353 | hole_width = (renderer->dash_length - 2.0*renderer->dot_length) / 3.0; |
358 | 354 | pstricks_dtostr(hole_width_buf,hole_width); |
359 | 355 | pstricks_dtostr(dot_length_buf,renderer->dot_length); |
360 | 356 | pstricks_dtostr(dash_length_buf,renderer->dash_length); |
361 | - fprintf(renderer->file, "\\linestyleddashdotdotted{%s %s %s %s %s %s}\n", | |
362 | - dash_length_buf, | |
363 | - hole_width_buf, | |
364 | - dot_length_buf, | |
365 | - hole_width_buf, | |
366 | - dot_length_buf, | |
367 | - hole_width_buf ); | |
357 | + fprintf(renderer->file, "\\psset{linestyle=dashed,dash=%s %s %s %s %s %s}\n", | |
358 | + dash_length_buf, hole_width_buf, dot_length_buf, hole_width_buf, | |
359 | + dot_length_buf, hole_width_buf ); | |
368 | 360 | break; |
369 | 361 | case LINESTYLE_DOTTED: |
370 | 362 | pstricks_dtostr(dot_length_buf,renderer->dot_length); |
@@ -2,14 +2,15 @@ | ||
2 | 2 | \documentclass[landscape]{article} |
3 | 3 | \usepackage[pdf]{pstricks} |
4 | 4 | \usepackage[crop=off]{auto-pst-pdf} |
5 | -\title{Dia Export Test} | |
5 | +\title{Dia Pstricks Export Test} | |
6 | 6 | \author{Hans Breuer} |
7 | 7 | \begin{document} |
8 | 8 | \maketitle |
9 | -\include{convert-to-path.pst} | |
9 | +%\include{convert-to-path.pst} | |
10 | 10 | %\include{jigsaw.pst} |
11 | -% while the former files had clipping issues render-test does not | |
12 | -% produce any visible result within in this setup, not even single | |
13 | -% layers of it | |
14 | -%\include{render-test.pst} | |
11 | +% All the files have clipping issues render-test did not produce any | |
12 | +% visible result within in this setup, due dash-dot-dot errors | |
13 | +% After that fixed still only a single included file can be included | |
14 | +% reliable on windows with TeXworks:pdfLatex ... | |
15 | +\include{render-test.pst} | |
15 | 16 | \end{document} |