40 lines
2.4 KiB
PowerShell
40 lines
2.4 KiB
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = "c:\Users\fdavalos\OneDrive - up.edu.mx\microtracking\MicrotrackingFer"
|
|
|
|
Write-Output '=== [B1] top level of tectonic-src ==='
|
|
Get-ChildItem (Join-Path $root 'tools\tectonic-src') | Select-Object Name, @{n='Type';e={if($_.PSIsContainer){'DIR'}else{'file'}}}, Length | Format-Table -AutoSize | Out-String -Width 120 | Write-Output
|
|
|
|
Write-Output '=== [B2] locate ALL fontconfig confs anywhere under tectonic-src ==='
|
|
Get-ChildItem (Join-Path $root 'tools\tectonic-src') -Recurse -File -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -match 'fontconfig' } |
|
|
Select-Object @{n='Rel';e={$_.FullName.Substring($root.Length+1)}}, Length |
|
|
Format-Table -AutoSize | Out-String -Width 200 | Write-Output
|
|
|
|
Write-Output '=== [B3] opentype font dirs inside the real bundle (first 30) ==='
|
|
Get-ChildItem (Join-Path $root 'tools\tectonic-src') -Recurse -Directory -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -eq 'opentype' } |
|
|
Select-Object -ExpandProperty FullName | Sort-Object -Unique | Select-Object -First 30
|
|
|
|
Write-Output ''
|
|
Write-Output '=== [B4] Tectonic cache: elsarticle / times class+sty locations ==='
|
|
$cacheRoot = "$env:LOCALAPPDATA\tectonic"
|
|
if (Test-Path $cacheRoot) {
|
|
Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -match '^(elsarticle|times|utimes|endfloat)' -and $_.Extension -match '\.(cls|sty)$' } |
|
|
Select-Object -ExpandProperty FullName
|
|
} else { Write-Output ("no cache at {0}" -f $cacheRoot) }
|
|
|
|
Write-Output ''
|
|
Write-Output '=== [B5] elsarticle.cls font-related lines (from cache) ==='
|
|
$cacheRoot = "$env:LOCALAPPDATA\tectonic"
|
|
$ea = Get-ChildItem $cacheRoot -Recurse -Filter 'elsarticle.cls' -ErrorAction SilentlyContinue | Select-Object -First 1
|
|
if ($ea) {
|
|
Select-String -Path $ea.FullName -Pattern 'rmdefault|sfdefault|ttdefault|mathfont|fontenc|times|helvet|newtx|usepackage\{font' |
|
|
Select-Object LineNumber, @{n='Text';e={$t=$_.Line.Trim(); if($t.Length -gt 110){$t.Substring(0,110)}else{$t}}} |
|
|
Format-Table -AutoSize | Out-String -Width 200 | Write-Output
|
|
} else { Write-Output 'elsarticle.cls not found in cache' }
|
|
|
|
Write-Output '=== [B6] fonts dirs in cache (first 40) ==='
|
|
Get-ChildItem $cacheRoot -Recurse -Directory -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -match 'opentype|fonts$' } |
|
|
Select-Object -ExpandProperty FullName | Select-Object -First 40 |