代码之家  ›  专栏  ›  技术社区  ›  captain

图形放置Quarto标记(浮点说明符)

  •  0
  • captain  · 技术社区  · 3 年前

    在LaTeX中,可以使用浮点说明符控制图形放置。例如,[H]将浮点值精确地放置在代码中的位置。

    \begin{figure}[H]
    \caption{Caption}
    \label{label}
    \includegraphics[width=\textwidth]{Figure.png}
    \end{figure}
    

    如果我包含一个带有 ![Caption](Figure.png) ?

    0 回复  |  直到 3 年前
        1
  •  2
  •   A. Bohyn    2 年前

    在上完成 the previous' answer ,可以使用以下方法指定单个地物的位置:

    ![A black cute dog](dog.jpg){fig-pos='H'}
    
        2
  •  1
  •   Shafee ikashnitsky    3 年前

    使用 fig-pos: H 在YAML标题中。

    ---
    title: Float Specifier
    format:
      pdf:
        fig-pos: H
    ---
     
    ## Markdown Image
    
    ![A black cute dog](dog.jpg)