我使用 Inkscape (Windows) 制作了一个 SVG,并将其导入到我的 Lyx 文档中,
但导出的 PDF 显示的图像超出了页面边界
PDF在这里
https://github.com/pedro-vicente/transport/blob/master/transport.pdf
以及同一存储库中的 .lyx、.tex 和 .svg 源
\begin_layout Standard
\align center
\begin_inset Graphics
filename figure_1.svg
\end_inset
\end_layout
编辑:
@scottkosty,谢谢,我将图片部分以及上下的文字导出到以下 LaTex
%% LyX 2.3.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\renewcommand{\sfdefault}{cmss}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{pdfpages}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
\makeatother
\usepackage{babel}
\begin{document}
In the Finite Volume Method, values for the above diferential equations
are calculated at discrete places on a grid of volumes, shown in Figure
1,
\begin{center}
\includepdf{figure_1}
\par\end{center}
\begin{center}
\textbf{Figure 1}: Temperature at center of cell, and on left and
right cell borders.
\par\end{center}
\noindent
\end{document}
答案1
只需在 Inkscape 中更改 .svg 的宽度和高度,然后导入 .lyx 即可解决此问题。如果 .svg 文件发生变化,Lyx 甚至会自动显示更改。