mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-28 05:44:00 -06:00
Fix images not displaying (#108)
This commit is contained in:
committed by
GitHub
parent
037ae6d7fd
commit
916b610a53
@@ -1,9 +1,8 @@
|
|||||||
local filter = require "make4ht-filter"
|
local filter = require "make4ht-filter"
|
||||||
local changePath = function(s) return s:gsub("%./images//","images/") end
|
|
||||||
local removeHeight = function(s) return s:gsub('height="%d+"', '') end
|
local removeHeight = function(s) return s:gsub('height="%d+"', '') end
|
||||||
local removeWidth = function(s) return s:gsub('width="%d+"', '') end
|
local removeWidth = function(s) return s:gsub('width="%d+"', '') end
|
||||||
local removeMaxWidth = function(s) return s:gsub(' max-width: %d+px;', '') end
|
local removeMaxWidth = function(s) return s:gsub(' max-width: %d+px;', '') end
|
||||||
local removeFixedSettings = function(s) return removeMaxWidth(removeWidth(removeHeight(changePath(s)))) end
|
local removeFixedSettings = function(s) return removeMaxWidth(removeWidth(removeHeight(s))) end
|
||||||
local process = filter{removeFixedSettings}
|
local process = filter{removeFixedSettings}
|
||||||
Make:htlatex()
|
Make:htlatex()
|
||||||
Make:match("html$",process)
|
Make:match("html$",process)
|
||||||
|
|||||||
@@ -35,16 +35,16 @@
|
|||||||
|
|
||||||
% Folders where to search for images
|
% Folders where to search for images
|
||||||
\graphicspath{
|
\graphicspath{
|
||||||
{./images/}
|
{images/}
|
||||||
{./troubleshooting/}
|
{troubleshooting/}
|
||||||
{./sourdough-starter/}
|
{sourdough-starter/}
|
||||||
{./troubleshooting/crumb-structures/}
|
{troubleshooting/crumb-structures/}
|
||||||
{./history/}
|
{history/}
|
||||||
{./images/external/}
|
{images/external/}
|
||||||
{./baking/}
|
{baking/}
|
||||||
{./wheat-sourdough/}
|
{wheat-sourdough/}
|
||||||
{./wheat-sourdough/shaping/}
|
{wheat-sourdough/shaping/}
|
||||||
{./non-wheat-sourdough/}
|
{non-wheat-sourdough/}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Layout rules
|
% Layout rules
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
% Title page
|
% Title page
|
||||||
\begin{titlepage}
|
\begin{titlepage}
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=\textwidth]{cover-page}
|
\includegraphics[width=\textwidth]{images/cover-page.jpg}
|
||||||
Version:
|
Version:
|
||||||
\today
|
\today
|
||||||
\end{titlepage}
|
\end{titlepage}
|
||||||
|
|||||||
Reference in New Issue
Block a user