$ErrorActionPreference = 'Stop' $root = "c:\Users\fdavalos\OneDrive - up.edu.mx\microtracking\MicrotrackingFer" $cacheRoot = "$env:LOCALAPPDATA\TectonicProject" if (-not (Test-Path $cacheRoot)) { Write-Output 'cache missing'; exit 1 } Write-Output "=== [C2] cache tree (depth 2, first 60) ===" Get-ChildItem $cacheRoot -Recurse -Depth 2 -ErrorAction SilentlyContinue | Select-Object -First 60 @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, PSIsContainer, Length | Format-Table -AutoSize | Out-String -Width 170 | Write-Output Write-Output '=== [C3] fontconfig confs in cache ===' Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.Name -match 'fontconfig' } | Select-Object @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, Length | Format-Table -AutoSize | Out-String -Width 180 | Write-Output Write-Output '' Write-Output '=== [C4] ALL font files in cache (by extension, first 40) + 1-byte stub count ===' $all = Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.Extension -in '.otf','.ttf','.ttc' } "total font files: $($all.Count), one-byte (stub) files: $(@($all | Where-Object { $_.Length -le 2 }).Count)" $all | Select-Object -First 40 @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, Length | Format-Table -AutoSize | Out-String -Width 180 | Write-Output Write-Output '=== [C5] lmmath / palladio / elsarticle / times in cache ===' Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.Name -match 'lmmath|Palladio|elsarticle|times' } | Select-Object -First 25 @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, Length | Format-Table -AutoSize | Out-String -Width 180 | Write-Output